Recipe for making a thin film detector