In this tutorial, I will show how to interface a 5V relay with Arduino and control an AC load.
Measure your light intensity lux using this sensor and simple code.