Temperature sensor interfacing with Arduino

In this tutorial, we will learn temperature sensor interfacing with arduino to measure temperature and to control devices according to temperature. Lm35 provide 10mv /degree changes, so if temperature is 28*c, lm35 will provide 280mv at output pin 2. As we know, these are analog output, so connect output of lm35 to arduino analog channel A0 as shown in circuit below.

Materials required

  • Arduino uno
  • LM35 (Temperature sensor)
  • Lcd JHD162A
  • Power supply

Circuit arrangement

Temperature sensor interfacing

In this circuit arrangement, Lcd is connected on pin 7, 6, 5, 4, 3, 2 of arduino uno. d0-d3 of lcd is not connected , R/w pin is connected through ground to enable write mode. Output of temperature sensor LM35 is connected on analog channel of arduino A0.

Code:

Add Comment