Arduino project 60- Arduino based thermostat and relay

In this tutorial, we will build a thermostat to independently activate and deactivate any domestic device depending on the temperature.

We will be able to display the temperature and the activation status of the device connected to the relay on the 16×2 LCD display. Moreover, on the sketch we can modify the temperature, detected by the LM35 sensor, setting the desired value of switching on and off of the device above a certain threshold.

I2C Sketch

Normal 16×2 LCD