Added PIRsensor code for trigger