-
voltage 3.3-5v
-
Compatible with Arduino
-
Sensor Module
-
CODE
-
int sensorPin =2;//define analog pin 2int value =0;voidsetup(){Serial.begin(9600);}voidloop(){ value =analogRead(sensorPin);Serial.println(value, DEC);// light intensity// high values for bright environment// low values for dark environment}








Reviews
There are no reviews yet.