Salah satu sensor suhu yang ada di pasaran adalah LM35. LM35 memberikan analog voltage yang berkadar terus dengan suhu di dalam unit Celcius.

Cara membaca suhu daripada sensor LM35 adalah dengan menggunakan ADC. Kemudian tukarkan nilai voltan kepada Celcius dengan kadar 10mV per Celcius. Suhu tersebut juga boleh ditukarkan kepada unit lain seperti Fahrenheit dan Kelvin. Rumus menukarkan unitnya adalah seperti di bawah.

Di bawah adalah contoh program membaca LM35 dan menukarkan kepada Celcius, Fahrenheit dan Kelvin.
Berikut adalah videonya.
Sumanta, maybe you put wrong polarity. Refer to datasheet, the pin view from bottom or top.
Myself Sumanta from Indian Institute of Technology Kharagpur wants to see the output of LM35. When 5volt is given at its Vs pin with respect to ground, the device is getting heated up too much. Can anyone tell me the cause of this problem and how it can be solved. Waiting for all of your suggestions.
Sumanta
Mke, you can get the header file here.
Please can you attach the header files please for LibraryHD44780.h and LibraryADC.h …!! thank you love your website!