A method has been developed to determine the temperature distribution of ferroelectric surfaces and volumes. Based on the effect of optical second harmonic generation (SHG) in highly nonlinear ferroelectric coating demonstration of thermosensing has been performed in the wide temperature range (77 K-600 K).