Add digitalWrite command to pirState after the end of void loop()