updated light sensor script and added functioning temprature and humidity sensor scripts*
This commit is contained in:
@@ -5,10 +5,11 @@
|
||||
*
|
||||
* Tutorial page: https://arduinogetstarted.com/tutorials/arduino-light-sensor
|
||||
*/
|
||||
#define LDR 5
|
||||
#define LDR 12
|
||||
void setup() {
|
||||
// initialize serial communication at 9600 bits per second:
|
||||
Serial.begin(9600);
|
||||
delay(1000);
|
||||
}
|
||||
|
||||
void loop() {
|
||||
@@ -17,4 +18,5 @@ void loop() {
|
||||
|
||||
Serial.println("Analog reading: ");
|
||||
Serial.println(analogValue); // the raw analog reading
|
||||
delay(1000);
|
||||
}
|
Reference in New Issue
Block a user