motion sensor is used to detect the any object
Fork of HelloWorld by
Diff: main.cpp
- Revision:
- 3:085dbf0f0726
- Parent:
- 2:e78cebb5a0d5
--- a/main.cpp Thu Dec 01 10:39:34 2016 +0000 +++ b/main.cpp Thu Dec 01 10:45:55 2016 +0000 @@ -9,7 +9,7 @@ wait(2); //Wait for sensor to take snap shot of still room while(1) { - if (motion==0){ + if (motion==1){ buzzer=1; wait(2); }