motion sensor is used to detect the any object

Dependencies:   mbed

Fork of HelloWorld by Simon Ford

Revision:
3:085dbf0f0726
Parent:
2:e78cebb5a0d5
--- a/motionsensor.h	Thu Dec 01 10:39:34 2016 +0000
+++ b/motionsensor.h	Thu Dec 01 10:45:55 2016 +0000
@@ -8,7 +8,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);
         }