Optical sensors are a broad class of device for detecting light intensity. This can be just a simple component for notifying when ambient light levels rise above or fall below a prescribed level, or a ...
//Include the library #include <MQUnifiedsensor.h> /*****Hardware Related Macros*****/ #define Board ("Arduino UNO") #define Pin (A4) //Analog input 4 of your arduino ...