Page 36 - Assessment No 1- 257
P. 36

}


                 else{


                   digitalWrite(LED,HIGH);


                   serial.println("Sensor Value:");


                   serial.println(sensorValue);


                 }


                 Delay (1000);


               }




                   float getsensorValue(int pin){


                   return (analogRead(pin));


                   }






               •        Other 5 places that this sensor can be used



                                     Some vehicale


                                          Factors


                                          Fire protection system


                                          Power industry


                                          Office & other public place
   31   32   33   34   35   36   37   38   39   40   41