Find out how to control any 120V appliance with your Arduino. After making this power outlet box, you can use any sensor with your Arduino to switch on or off the power supplied to the outlet. Here the author has used a DHT11 humidity and temperature sensor to switch off a light bulb when the humidity reaches a specific point. But you can use any home appliance combined with any sensor. He will also show you how to modify the code for your own project.
Step by step process: click hereÂ
Courtesy:Â Circuit Basics
how can we use temperature sensor