Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int lightPin = A5;
- unsigned long time1;
- void setup() {
- Serial.begin(9600);
- }
- void loop() {
- //Serial.println(analogRead(A5));
- if(analogRead(A5)>250) {
- time1 = millis();
- Serial.println(time1);
- delay(10000);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement