Advertisement
Just_my_username

ajnjhtpbcnjh

Dec 12th, 2019
313
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. int lightPin = A5;
  2. unsigned long time1;
  3.  
  4.  
  5. void setup() {
  6. Serial.begin(9600);
  7.  
  8. }
  9.  
  10. void loop() {
  11. //Serial.println(analogRead(A5));
  12. if(analogRead(A5)>250) {
  13. time1 = millis();
  14. Serial.println(time1);
  15. delay(10000);
  16. }
  17.  
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement