Using Sensor Data to Activate a 5V Relay on the Arduino | tecno4 | Scoop.it
In this tutorial, we will see how to use sensor data to control a 5V relay connected to an Arduino. We will build a sample project that will turn on/off a lamp when the reading from a photoresistor crosses a threshold value. The project will also be able to turn a lamp on and off with a variable timer.