MQTT keeps reconnecting if there is NO motion detected

Hi all,

I have some troubles with my configuration in esp32, arduino and home assistant.
I'll try to be as clear as possible:

Expected behaviour:
If I comment the MotionDetect(); in the loop, the MQTT keeps connected.
If I uncomment the MotionDetect(); in the loop AND motion is detected, the MQTT keeps connected.

Unexpected behaviour:
If I uncomment the MotionDetect(); in the loop AND there is NO motion detected (so I'm im not in the room), it keeps reconnecting to the MQTT broker and detecting false motions.

mqttreconnecting

The loop:

void loop(void) {
  //mqtt reconnect loop
  if( !client.connected() ){
    reconnect(); 
  }
  client.loop();


  MotionDetect();
}

It has something to do with my motion detect function + in the case that there's no motion detected.

void MotionDetect(){
  if (motion){
   
  //PIR sensor
  pirValue = digitalRead(pirPin);  // continously read input pirValue
  
  if (pirValue == HIGH) {
    Serial.println("High State: Motion detected!");
    LightOn(false);
    time_now = millis();
    client.publish("ha/motiondetected", "ON");
    
    while(millis() < time_now + period){
        pirValue = digitalRead(pirPin); //read again if there is motion
        if (pirValue == HIGH){ //if there is motion
          //Serial.println("High State: Still motion detected, no turning off!");
          time_now = millis(); //reset timer
          client.publish("ha/motiondetected", "ON");
        }
      }
    }
    else { //pirValue == LOW
    //Serial.println("Low State: No Motion detected!");
    client.publish("ha/motiondetected", "OFF");
    LightOff(false);
    }
  }
}

I've tried so many things, hopefully someone can help me out.
Thanks in advance!

Below the full code. I thought it would be easier to NOT post all code :).
The motion can be set to true or false through a switch in home assistant, in case If I want to disable the motiondetection to set the switch manually on or off.
So both ways :slight_smile: that works actually fine.

//-----LIBRARIES-----//
#include <WiFi.h> // wifi setup
#include <WiFiClient.h> //wifi setup
#include <WebServer.h> //webserver esp
#include <Update.h> //OTA update
#include <PubSubClient.h> //MQTT

//-----GLOBAL VARIABLES-----//
//variables for wifi
const char* host = "esp32";
const char* ssid = 
const char* password = 
long rssi = WiFi.RSSI();
String espMac = WiFi.macAddress();

//variables for MQTT
const char* mqtt_server = "10.240.2.253";
const char* clientID = "esp[mac]";  // Name of our device, must be unique

//variables for PIR HC-SR501
int pirPin = 27; //gpio27 on esp32
int pirState = LOW; //no motion detected on startup
int pirValue = 0; //variable for reading the pinPin status
//timer for PIR//
int period = 30000;
unsigned long time_now = 0;
boolean motion = true;

//variables for relay module
const int relay = 15; //pin15 on esp32 board
int light = 0; //light variable to check if light is on

//Wifi client wclient for wifi //pubsubclient for mqtt
WiFiClient esp01;
PubSubClient client(esp01);
String switch1; //relay switch topic to subscribe to in hassio
String haMotion; //motion sensor topic to subscribe to in hassio
String strTopic; //topic for hassio
String strPayload; //status for hassio

//webserver via HTTP for OTA updates
WebServer server(80); 

//Server index page
const char* serverIndex =
"<script src='https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js'></script>"
"<form method='POST' action='#' enctype='multipart/form-data' id='upload_form'>"
   "<input type='file' name='update'>"
        "<input type='submit' value='Update'>"
    "</form>"
 "<div id='prg'>progress: 0%</div>"
 "<script>"
  "$('form').submit(function(e){"
  "e.preventDefault();"
  "var form = $('#upload_form')[0];"
  "var data = new FormData(form);"
  " $.ajax({"
  "url: '/update',"
  "type: 'POST',"
  "data: data,"
  "contentType: false,"
  "processData:false,"
  "xhr: function() {"
  "var xhr = new window.XMLHttpRequest();"
  "xhr.upload.addEventListener('progress', function(evt) {"
  "if (evt.lengthComputable) {"
  "var per = evt.loaded / evt.total;"
  "$('#prg').html('progress: ' + Math.round(per*100) + '%');"
  "}"
  "}, false);"
  "return xhr;"
  "},"
  "success:function(d, s) {"
  "console.log('success!')"
 "},"
 "error: function (a, b, c) {"
 "}"
 "});"
 "});"
 "</script>";



void setup(void) {
  Serial.begin(9600);
  ConnectWifi();
  OtaPage();  

  //setup pins
  pinMode(pirPin, INPUT); // declare pir sensor pin as input
  pinMode(relay, OUTPUT); //declare relay Pin
  
  //setup MQTT
  client.setServer(mqtt_server, 1883);
  client.setCallback(callback);

  //Setup motion PIR sensor
  //Serial.println("Delay of 60s due to stabilization of Pir started...");
  //delay(60000); //stabilization timer for pir 501
  //Serial.println("Finished stabilization...happy motion!");

  //connect first to mqtt before pushing hassio states
  reconnect();

  //default states hassio
  client.publish("ha/hamotion", "ON");
  client.publish("ha/switch1", "OFF");
  client.publish("ha/motiondetected", "OFF");

  Serial.println("end of setup");
}

void loop(void) {
  //OTA respond to user request
  //server.handleClient();

  //mqtt reconnect loop
  if( !client.connected() ){
    reconnect(); 
  }
  client.loop();


  MotionDetect(); //on startup motion = on
  
  client.publish("ha/rssi",String(rssi).c_str(), true);
}
    

void ConnectWifi(){
  // Connect to WiFi network
  WiFi.begin(ssid, password);
  Serial.println("Attempting to connect to WiFi...");

  // Wait for connection
  while (WiFi.status() != WL_CONNECTED) {
    delay(500);
    Serial.print(".");
  }
  Serial.println("");
  Serial.print("Connected to ");
  Serial.println(ssid);
  Serial.print("IP address: ");
  Serial.println(WiFi.localIP());
  Serial.print("Mac address: ");
  Serial.println(espMac);
  Serial.print("Wifi RSSI: ");
  Serial.println(rssi);
}

void OtaPage(){
  /*return index page which is stored in serverIndex */
  server.on("/", HTTP_GET, []() {
    server.sendHeader("Connection", "close");
    server.send(200, "text/html", serverIndex);
  });
  /*handling uploading firmware file */
  server.on("/update", HTTP_POST, []() {
    server.sendHeader("Connection", "close");
    server.send(200, "text/plain", (Update.hasError()) ? "FAIL" : "OK");
    ESP.restart();
  }, []() {
    HTTPUpload& upload = server.upload();
    if (upload.status == UPLOAD_FILE_START) {
      Serial.printf("Update: %s\n", upload.filename.c_str());
      if (!Update.begin(UPDATE_SIZE_UNKNOWN)) { //start with max available size
        Update.printError(Serial);
      }
    } else if (upload.status == UPLOAD_FILE_WRITE) {
      /* flashing firmware to ESP*/
      if (Update.write(upload.buf, upload.currentSize) != upload.currentSize) {
        Update.printError(Serial);
      }
    } else if (upload.status == UPLOAD_FILE_END) {
      if (Update.end(true)) { //true to set the size to the current progress
        Serial.printf("Update Success: %u\nRebooting...\n", upload.totalSize);
      } else {
        Update.printError(Serial);
      }
    }
  });
  server.begin();
}

void LightOn(boolean hassioTrigger){
  digitalWrite(relay, HIGH);
  //Serial.println("Relay state: High = ON");
  light = 1;
  if (!hassioTrigger){
    client.publish("ha/switch1", "ON");
  }
}

void LightOff(boolean hassioTrigger){
  digitalWrite(relay, LOW);
  light = 0;
  //Serial.println("Relay state: Low = OFF");
  if (!hassioTrigger){
    client.publish("ha/switch1", "OFF");
  }
}

void MotionDetect(){
  if (motion){
   
  //PIR sensor
  pirValue = digitalRead(pirPin);  // continously read input pirValue
  
  if (pirValue == HIGH) {
    Serial.println("High State: Motion detected!");
    LightOn(false);
    time_now = millis();
    client.publish("ha/motiondetected", "ON");
    
    while(millis() < time_now + period){
        pirValue = digitalRead(pirPin); //read again if there is motion
        if (pirValue == HIGH){ //if there is motion
          //Serial.println("High State: Still motion detected, no turning off!");
          time_now = millis(); //reset timer
          client.publish("ha/motiondetected", "ON");
        }
      }
    }
    else { //pirValue == LOW
    //Serial.println("Low State: No Motion detected!");
    client.publish("ha/motiondetected", "OFF");
    LightOff(false);
    }
  }
}

void callback(char* topic, byte* payload, unsigned int length) {
  payload[length] = '\0';
  strTopic = String((char*)topic);

   if(strTopic == "ha/hamotion"){
    haMotion = String((char*)payload);
    if(haMotion == "ON"){
        Serial.println("HASS: Motion sensor is ON");
        motion = true;
      }
    else{
        Serial.println("HASS: Motion sensor is OFF");
        motion = false;
      }
    } 
    else if((strTopic == "ha/switch1") && (motion == false)){
    switch1 = String((char*)payload);
    if(switch1 == "ON"){
        Serial.println("HASS: Turn Lights On");
        LightOn(true);
      }
    else {
        if (light == 1){
            Serial.println("HASS: Turn Lights Off");
            LightOff(false);
        }
      }
    }
}

void reconnect() {
  // Loop until we're reconnected
  while (!client.connected()) {
    Serial.print("Attempting MQTT connection...");
    // Attempt to connect
    if (client.connect(clientID)) {
      Serial.println("connected");
      // Once connected, publish an announcement...
      client.subscribe("ha/switch1");
      client.subscribe("ha/hamotion");
      client.subscribe("ha/motiondetected");
      client.subscribe("ha/rssi");
    } else {
      Serial.print("failed, rc=");
      Serial.print(client.state());
      Serial.println(" try again in 5 seconds");
      // Wait seconds before retrying
      delay(5000);
    }
  }
}

Add some print statements to the MotionDetect() function to figure out what what is doing when.

While is a blocking function. If you are here too long (I don't remember the number of ms), MQTT will disconnect.

If you must use while, then put this into your while loop:

  if( !client.connected() ) reconnect(); 

Thanks for the comments. I've added the reconnect function + prints in the while loop.
However, it doesn't work. Like I mentioned before, it's only not working if there shouldn't be any motion detected. The PIR is covered and there is no motion near it.
If I check the logging, there are besides a MQTT reconnection also false positives from the PIR.

I've created the while function to detect if there is still motion after detection, otherwhise the light turns off and on quickly to re-enter the IF statement. Now the light stays on if there is still motion detected.

void MotionDetect(){
  if (motion){
   
  //PIR sensor
  pirValue = digitalRead(pirPin);  // continously read input pirValue
  
  if (pirValue == HIGH) {
    Serial.println("High State: Motion detected!");
    LightOn(false);
    time_now = millis();
    client.publish("ha/motiondetected", "ON");
    
    while(millis() < time_now + period){
        pirValue = digitalRead(pirPin); //read again if there is motion
        Serial.println("Read pinout in while loop");
        
        if( !client.connected() ){
          reconnect(); 
          Serial.println("Reconnected in while loop");
        }
        
        if (pirValue == HIGH){ //if there is motion
          Serial.println("High State: Still motion detected, no turning off!");
          time_now = millis(); //reset timer
          client.publish("ha/motiondetected", "ON");
        }
      }
    }
    else { //pirValue == LOW
    Serial.println("Low State: No Motion detected!");
    client.publish("ha/motiondetected", "OFF");
    LightOff(false);
    }
  }
}

Serial logging:
I've shortend the code because of max characters by removing duplicates :slight_smile:

20:18:24.945 -> Attempting MQTT connection...connected
20:18:25.196 -> end of setup
20:18:25.196 -> Low State: No Motion detected!
20:18:25.232 -> Low State: No Motion detected!
20:18:25.269 -> Low State: No Motion detected!
[Low State: No Motion detected!]
20:19:08.725 -> Low State: No Motion detected!
20:19:08.761 -> Low State: No Motion detected!
20:19:08.794 -> Low State: No Motion detected!
20:19:08.830 -> Low State: No Motion detected!
20:19:08.864 -> Low State: No Motion detected!
20:19:08.900 -> Low State: No Motion detected!
20:19:08.936 -> Low State: No Motion detected!
20:19:08.972 -> Low State: No Motion detected!
20:19:09.008 -> Low State: No Motion detected!
20:19:09.044 -> Low State: No Motion detected!
20:19:09.080 -> High State: Motion detected!
20:19:09.080 -> Read pinout in while loop
20:19:09.116 -> High State: Still motion detected, no turning off!
20:19:09.185 -> Read pinout in while loop
20:19:09.221 -> High State: Still motion detected, no turning off!
20:19:09.254 -> Read pinout in while loop
20:19:09.290 -> High State: Still motion detected, no turning off!
20:19:09.359 -> Read pinout in while loop
20:19:09.359 -> High State: Still motion detected, no turning off!
20:19:09.426 -> Read pinout in while loop
20:19:09.462 -> High State: Still motion detected, no turning off!
20:19:09.498 -> Read pinout in while loop
20:19:09.534 -> High State: Still motion detected, no turning off!
20:19:09.603 -> Read pinout in while loop
20:19:09.603 -> High State: Still motion detected, no turning off!
20:19:09.675 -> Read pinout in while loop
20:19:09.711 -> High State: Still motion detected, no turning off!
20:19:09.747 -> Read pinout in while loop
20:19:09.781 -> High State: Still motion detected, no turning off!
20:19:09.853 -> Read pinout in while loop
20:19:09.853 -> High State: Still motion detected, no turning off!
20:19:09.924 -> Read pinout in while loop
20:19:09.957 -> High State: Still motion detected, no turning off!
20:19:09.990 -> Read pinout in while loop
20:19:10.024 -> High State: Still motion detected, no turning off!
20:19:10.096 -> Read pinout in while loop
20:19:10.096 -> High State: Still motion detected, no turning off!
20:19:10.165 -> Read pinout in while loop
20:19:10.201 -> Read pinout in while loop
20:19:10.234 -> Read pinout in while loop
[read pinout in while loop]
20:19:15.076 -> Read pinout in while loop
20:19:15.109 -> Read pinout in while loop
20:19:15.145 -> Read pinout in while loop
20:19:15.179 -> Read pinout in while loop
20:19:15.215 -> Read pinout in while loop
20:19:15.215 -> Read pinout in while loop
20:19:15.251 -> High State: Still motion detected, no turning off!
20:19:15.318 -> Read pinout in while loop
20:19:15.354 -> High State: Still motion detected, no turning off!
20:19:15.390 -> Read pinout in while loop
20:19:15.424 -> High State: Still motion detected, no turning off!
20:19:15.493 -> Read pinout in while loop
20:19:15.493 -> High State: Still motion detected, no turning off!
20:19:15.562 -> Read pinout in while loop
20:19:15.598 -> High State: Still motion detected, no turning off!
20:19:15.634 -> Read pinout in while loop
20:19:15.669 -> High State: Still motion detected, no turning off!
20:19:15.736 -> Read pinout in while loop
20:19:15.736 -> High State: Still motion detected, no turning off!
20:19:15.805 -> Read pinout in while loop
20:19:15.841 -> High State: Still motion detected, no turning off!
20:19:15.875 -> Read pinout in while loop
20:19:15.909 -> High State: Still motion detected, no turning off!
20:19:15.981 -> Read pinout in while loop
20:19:15.981 -> High State: Still motion detected, no turning off!
20:19:16.051 -> Read pinout in while loop
20:19:16.087 -> High State: Still motion detected, no turning off!
20:19:16.121 -> Read pinout in while loop
20:19:16.157 -> High State: Still motion detected, no turning off!
20:19:16.229 -> Read pinout in while loop
20:19:16.229 -> High State: Still motion detected, no turning off!
20:19:16.299 -> Read pinout in while loop
20:19:16.332 -> Read pinout in while loop
20:19:16.368 -> Read pinout in while loop
20:19:16.368 -> Read pinout in while loop
[read pinout in while loop]
20:19:20.135 -> Read pinout in while loop
20:19:20.168 -> Read pinout in while loop
20:19:20.204 -> Read pinout in while loop
20:19:20.240 -> Read pinout in while loop
20:19:20.274 -> High State: Still motion detected, no turning off!
20:19:20.310 -> Read pinout in while loop
20:19:20.346 -> High State: Still motion detected, no turning off!
20:19:20.413 -> Read pinout in while loop
20:19:20.413 -> High State: Still motion detected, no turning off!
20:19:20.483 -> Read pinout in while loop
20:19:20.516 -> High State: Still motion detected, no turning off!
20:19:20.552 -> Read pinout in while loop
20:19:20.588 -> High State: Still motion detected, no turning off!
20:19:20.660 -> Read pinout in while loop
20:19:20.660 -> High State: Still motion detected, no turning off!
20:19:20.729 -> Read pinout in while loop
20:19:20.762 -> High State: Still motion detected, no turning off!
20:19:20.798 -> Read pinout in while loop
20:19:20.831 -> High State: Still motion detected, no turning off!
20:19:20.901 -> Read pinout in while loop
20:19:20.934 -> High State: Still motion detected, no turning off!
20:19:20.970 -> Read pinout in while loop
20:19:21.003 -> High State: Still motion detected, no turning off!
20:19:21.075 -> Read pinout in while loop
20:19:21.075 -> High State: Still motion detected, no turning off!
20:19:21.144 -> Read pinout in while loop
20:19:21.177 -> High State: Still motion detected, no turning off!
20:19:21.210 -> Read pinout in while loop
20:19:21.246 -> High State: Still motion detected, no turning off!
20:19:21.316 -> Read pinout in while loop
20:19:21.352 -> Read pinout in while loop
20:19:21.352 -> Read pinout in while loop
20:19:21.385 -> Read pinout in while loop
[read pinout in while loop]
20:19:29.139 -> Read pinout in while loop
20:19:29.173 -> Read pinout in while loop
20:19:29.209 -> Read pinout in while loop
20:19:29.245 -> Read pinout in while loop
20:19:29.280 -> High State: Still motion detected, no turning off!
20:19:29.316 -> Read pinout in while loop
20:19:29.349 -> High State: Still motion detected, no turning off!
20:19:29.390 -> Read pinout in while loop
20:19:29.426 -> High State: Still motion detected, no turning off!
20:19:29.496 -> Read pinout in while loop
20:19:29.496 -> High State: Still motion detected, no turning off!
20:19:29.565 -> Read pinout in while loop
20:19:29.600 -> High State: Still motion detected, no turning off!
20:19:29.635 -> Read pinout in while loop
20:19:29.670 -> High State: Still motion detected, no turning off!
20:19:29.740 -> Read pinout in while loop
20:19:29.775 -> High State: Still motion detected, no turning off!
20:19:29.810 -> Read pinout in while loop
20:19:29.845 -> High State: Still motion detected, no turning off!
20:19:29.880 -> Read pinout in while loop
20:19:29.915 -> High State: Still motion detected, no turning off!
20:19:29.985 -> Read pinout in while loop
20:19:30.020 -> High State: Still motion detected, no turning off!
20:19:30.055 -> Read pinout in while loop
20:19:30.090 -> High State: Still motion detected, no turning off!
20:19:30.125 -> Read pinout in while loop
20:19:30.160 -> High State: Still motion detected, no turning off!
20:19:30.230 -> Read pinout in while loop
20:19:30.265 -> High State: Still motion detected, no turning off!
20:19:30.300 -> Read pinout in while loop
20:19:30.335 -> Read pinout in while loop
20:19:30.370 -> Read pinout in while loop
20:19:30.405 -> Read pinout in while loop
[read pinout in while loop]
20:19:40.132 -> Read pinout in while loop
20:19:40.167 -> Read pinout in while loop
20:19:40.167 -> Read pinout in while loop
20:19:40.204 -> Read pinout in while loop
20:19:40.239 -> Read pinout in while loop
20:19:40.276 -> Read pinout in while loop
20:19:40.276 -> Read pinout in while loop
20:19:40.311 -> Low State: No Motion detected!
20:19:40.347 -> Low State: No Motion detected!
20:19:40.383 -> Low State: No Motion detected!
20:19:40.419 -> High State: Motion detected!
20:19:40.456 -> Read pinout in while loop
20:19:40.491 -> High State: Still motion detected, no turning off!
20:19:40.527 -> Read pinout in while loop
20:19:40.563 -> High State: Still motion detected, no turning off!
20:19:40.599 -> Read pinout in while loop
20:19:40.635 -> High State: Still motion detected, no turning off!
20:19:40.708 -> Read pinout in while loop
20:19:40.743 -> High State: Still motion detected, no turning off!
20:19:40.779 -> Read pinout in while loop
20:19:40.815 -> High State: Still motion detected, no turning off!
20:19:40.851 -> Read pinout in while loop
20:19:40.887 -> High State: Still motion detected, no turning off!
20:19:40.959 -> Read pinout in while loop
20:19:40.959 -> High State: Still motion detected, no turning off!
20:19:41.030 -> Read pinout in while loop
20:19:41.066 -> High State: Still motion detected, no turning off!
20:19:41.102 -> Read pinout in while loop
20:19:41.138 -> High State: Still motion detected, no turning off!
20:19:41.174 -> Read pinout in while loop
20:19:41.210 -> High State: Still motion detected, no turning off!
20:19:41.282 -> Read pinout in while loop
20:19:41.318 -> High State: Still motion detected, no turning off!
20:19:41.354 -> Read pinout in while loop
20:19:41.390 -> High State: Still motion detected, no turning off!
20:19:41.426 -> Read pinout in while loop
20:19:41.462 -> Read pinout in while loop
20:19:41.496 -> Read pinout in while loop
[read pinout in while loop]
20:19:51.296 -> Read pinout in while loop
20:19:51.332 -> Read pinout in while loop
20:19:51.368 -> Read pinout in while loop
20:19:51.404 -> Read pinout in while loop
20:19:51.440 -> Read pinout in while loop
20:19:51.440 -> Low State: No Motion detected!
20:19:51.476 -> High State: Motion detected!
20:19:51.512 -> Read pinout in while loop
20:19:51.548 -> High State: Still motion detected, no turning off!
20:19:51.584 -> Read pinout in while loop
20:19:51.620 -> High State: Still motion detected, no turning off!
20:19:51.692 -> Read pinout in while loop
20:19:51.692 -> High State: Still motion detected, no turning off!
20:19:51.764 -> Read pinout in while loop
20:19:51.800 -> High State: Still motion detected, no turning off!
20:19:51.836 -> Read pinout in while loop
20:19:51.872 -> High State: Still motion detected, no turning off!
20:19:51.944 -> Read pinout in while loop
20:19:51.944 -> High State: Still motion detected, no turning off!
20:19:52.015 -> Read pinout in while loop
20:19:52.050 -> High State: Still motion detected, no turning off!
20:19:52.086 -> Read pinout in while loop
20:19:52.122 -> High State: Still motion detected, no turning off!
20:19:52.158 -> Read pinout in while loop
20:19:52.194 -> High State: Still motion detected, no turning off!
20:19:52.264 -> Read pinout in while loop
20:19:52.300 -> High State: Still motion detected, no turning off!
20:19:52.333 -> Read pinout in while loop
20:19:52.369 -> High State: Still motion detected, no turning off!
20:19:52.405 -> Read pinout in while loop
20:19:52.441 -> High State: Still motion detected, no turning off!
20:19:52.512 -> Read pinout in while loop
20:19:52.545 -> High State: Still motion detected, no turning off!
20:19:52.581 -> Read pinout in while loop
20:19:52.617 -> Read pinout in while loop
20:19:52.653 -> Read pinout in while loop
[read pinout in while loop]
20:20:02.497 -> Read pinout in while loop
20:20:02.532 -> Read pinout in while loop
20:20:02.565 -> Read pinout in while loop
20:20:02.601 -> Low State: No Motion detected!
20:20:02.637 -> Low State: No Motion detected!
20:20:02.672 -> High State: Motion detected!
20:20:02.708 -> Read pinout in while loop
20:20:02.708 -> High State: Still motion detected, no turning off!
20:20:02.778 -> Read pinout in while loop
20:20:02.811 -> High State: Still motion detected, no turning off!
20:20:02.844 -> Read pinout in while loop
20:20:02.877 -> High State: Still motion detected, no turning off!
20:20:02.948 -> Read pinout in while loop
20:20:02.984 -> High State: Still motion detected, no turning off!
20:20:03.020 -> Read pinout in while loop
20:20:03.056 -> High State: Still motion detected, no turning off!
20:20:03.092 -> Read pinout in while loop
20:20:03.128 -> High State: Still motion detected, no turning off!
20:20:03.198 -> Read pinout in while loop
20:20:03.232 -> High State: Still motion detected, no turning off!
20:20:03.267 -> Read pinout in while loop
20:20:03.301 -> High State: Still motion detected, no turning off!
20:20:03.370 -> Read pinout in while loop
20:20:03.370 -> High State: Still motion detected, no turning off!
20:20:03.437 -> Read pinout in while loop
20:20:03.472 -> High State: Still motion detected, no turning off!
20:20:03.508 -> Read pinout in while loop
20:20:03.544 -> High State: Still motion detected, no turning off!
20:20:03.613 -> Read pinout in while loop
20:20:03.613 -> High State: Still motion detected, no turning off!
20:20:03.685 -> Read pinout in while loop
20:20:03.721 -> High State: Still motion detected, no turning off!
20:20:03.754 -> Read pinout in while loop
20:20:03.790 -> Read pinout in while loop
20:20:03.824 -> Read pinout in while loop
20:20:03.857 -> Read pinout in while loop
Read pinout in while loop
20:20:12.756 -> Read pinout in while loop
20:20:12.790 -> Read pinout in while loop
20:20:12.823 -> Read pinout in while loop
20:20:12.856 -> Read pinout in while loop
20:20:12.892 -> Read pinout in while loop
20:20:12.892 -> High State: Still motion detected, no turning off!
20:20:12.964 -> Read pinout in while loop
20:20:12.997 -> High State: Still motion detected, no turning off!
20:20:13.030 -> Read pinout in while loop
20:20:13.066 -> High State: Still motion detected, no turning off!
20:20:13.138 -> Read pinout in while loop
20:20:13.138 -> High State: Still motion detected, no turning off!
20:20:13.207 -> Read pinout in while loop
20:20:13.243 -> High State: Still motion detected, no turning off!
20:20:13.277 -> Read pinout in while loop
20:20:13.313 -> High State: Still motion detected, no turning off!
20:20:13.380 -> Read pinout in while loop
20:20:13.416 -> High State: Still motion detected, no turning off!
20:20:13.449 -> Read pinout in while loop
20:20:13.485 -> High State: Still motion detected, no turning off!
20:20:13.518 -> Read pinout in while loop
20:20:13.553 -> High State: Still motion detected, no turning off!
20:20:13.623 -> Read pinout in while loop
20:20:13.657 -> High State: Still motion detected, no turning off!
20:20:13.691 -> Read pinout in while loop
20:20:13.724 -> High State: Still motion detected, no turning off!
20:20:13.796 -> Read pinout in while loop
20:20:13.796 -> High State: Still motion detected, no turning off!
20:20:13.865 -> Read pinout in while loop
20:20:13.901 -> High State: Still motion detected, no turning off!
20:20:13.937 -> Read pinout in while loop
20:20:13.973 -> Read pinout in while loop
20:20:14.007 -> Read pinout in while loop
20:20:14.043 -> Read pinout in while loop
20:20:14.043 -> Read pinout in while loop
Read pinout in while loop
20:20:23.774 -> Read pinout in while loop
20:20:23.808 -> Read pinout in while loop
20:20:23.844 -> Read pinout in while loop
20:20:23.877 -> Read pinout in while loop
20:20:23.914 -> Read pinout in while loop
20:20:23.914 -> Read pinout in while loop
20:20:23.950 -> Low State: No Motion detected!
20:20:23.985 -> Attempting MQTT connection...connected
20:20:24.406 -> High State: Motion detected!
20:20:24.406 -> Read pinout in while loop
20:20:24.440 -> High State: Still motion detected, no turning off!
20:20:24.508 -> Read pinout in while loop
20:20:24.544 -> High State: Still motion detected, no turning off!
20:20:24.577 -> Read pinout in while loop
20:20:24.611 -> High State: Still motion detected, no turning off!
20:20:24.680 -> Read pinout in while loop
20:20:24.680 -> High State: Still motion detected, no turning off!
20:20:24.752 -> Read pinout in while loop
20:20:24.786 -> High State: Still motion detected, no turning off!
20:20:24.821 -> Read pinout in while loop
20:20:24.855 -> High State: Still motion detected, no turning off!
20:20:24.925 -> Read pinout in while loop
20:20:24.961 -> High State: Still motion detected, no turning off!
20:20:24.994 -> Read pinout in while loop
20:20:25.030 -> High State: Still motion detected, no turning off!
20:20:25.066 -> Read pinout in while loop
20:20:25.102 -> High State: Still motion detected, no turning off!
20:20:25.171 -> Read pinout in while loop
20:20:25.205 -> Read pinout in while loop
20:20:25.205 -> Read pinout in while loop
Read pinout in while loop
20:20:35.077 -> Read pinout in while loop
20:20:35.113 -> Read pinout in while loop
20:20:35.149 -> Read pinout in while loop
20:20:35.185 -> Low State: No Motion detected!
20:20:35.221 -> Low State: No Motion detected!
20:20:35.257 -> Low State: No Motion detected!
20:20:35.293 -> High State: Motion detected!
20:20:35.293 -> Read pinout in while loop
20:20:35.329 -> High State: Still motion detected, no turning off!
20:20:35.401 -> Read pinout in while loop
20:20:35.401 -> High State: Still motion detected, no turning off!
20:20:35.473 -> Read pinout in while loop
20:20:35.509 -> High State: Still motion detected, no turning off!
20:20:35.545 -> Read pinout in while loop
20:20:35.581 -> High State: Still motion detected, no turning off!
20:20:35.653 -> Read pinout in while loop
20:20:35.653 -> High State: Still motion detected, no turning off!
20:20:35.725 -> Read pinout in while loop
20:20:35.762 -> High State: Still motion detected, no turning off!
20:20:35.798 -> Read pinout in while loop
20:20:35.833 -> High State: Still motion detected, no turning off!
20:20:35.867 -> Read pinout in while loop
20:20:35.903 -> High State: Still motion detected, no turning off!
20:20:35.975 -> Read pinout in while loop
20:20:36.009 -> High State: Still motion detected, no turning off!
20:20:36.045 -> Read pinout in while loop
20:20:36.081 -> High State: Still motion detected, no turning off!
20:20:36.117 -> Read pinout in while loop
20:20:36.153 -> High State: Still motion detected, no turning off!
20:20:36.222 -> Read pinout in while loop
20:20:36.258 -> High State: Still motion detected, no turning off!
20:20:36.292 -> Read pinout in while loop
20:20:36.327 -> High State: Still motion detected, no turning off!
20:20:36.363 -> Read pinout in while loop
20:20:36.399 -> Read pinout in while loop
20:20:36.435 -> Read pinout in while loop
20:20:36.471 -> Read pinout in while loop
20:20:36.507 -> Read pinout in while loop
Read pinout in while loop
20:20:46.270 -> Read pinout in while loop
20:20:46.306 -> Read pinout in while loop
20:20:46.342 -> Read pinout in while loop
20:20:46.378 -> Read pinout in while loop
20:20:46.378 -> Low State: No Motion detected!
20:20:46.414 -> Low State: No Motion detected!
20:20:46.450 -> High State: Motion detected!
20:20:46.486 -> Read pinout in while loop
20:20:46.522 -> High State: Still motion detected, no turning off!
20:20:46.558 -> Read pinout in while loop
20:20:46.594 -> High State: Still motion detected, no turning off!
20:20:46.664 -> Read pinout in while loop
20:20:46.664 -> High State: Still motion detected, no turning off!
20:20:46.736 -> Read pinout in while loop
20:20:46.772 -> High State: Still motion detected, no turning off!
20:20:46.808 -> Read pinout in while loop
20:20:46.844 -> High State: Still motion detected, no turning off!
20:20:46.916 -> Read pinout in while loop
20:20:46.916 -> High State: Still motion detected, no turning off!
20:20:46.988 -> Read pinout in while loop
20:20:47.024 -> High State: Still motion detected, no turning off!
20:20:47.060 -> Read pinout in while loop
20:20:47.096 -> High State: Still motion detected, no turning off!
20:20:47.132 -> Read pinout in while loop
20:20:47.168 -> High State: Still motion detected, no turning off!
20:20:47.240 -> Read pinout in while loop
20:20:47.240 -> High State: Still motion detected, no turning off!
20:20:47.312 -> Read pinout in while loop
20:20:47.346 -> High State: Still motion detected, no turning off!
20:20:47.381 -> Read pinout in while loop
20:20:47.418 -> High State: Still motion detected, no turning off!
20:20:47.489 -> Read pinout in while loop
20:20:47.489 -> High State: Still motion detected, no turning off!
20:20:47.561 -> Read pinout in while loop
20:20:47.598 -> Read pinout in while loop
20:20:47.598 -> Read pinout in while loop
20:20:47.633 -> Read pinout in while loop
20:20:47.669 -> Read pinout in while loop
Read pinout in while loop
20:20:57.391 -> Read pinout in while loop
20:20:57.427 -> Read pinout in while loop
20:20:57.463 -> Read pinout in while loop
20:20:57.496 -> Read pinout in while loop
20:20:57.496 -> Read pinout in while loop
20:20:57.532 -> Read pinout in while loop
20:20:57.569 -> Low State: No Motion detected!
20:20:57.604 -> Low State: No Motion detected!
20:20:57.640 -> Low State: No Motion detected!
20:20:57.676 -> High State: Motion detected!
20:20:57.712 -> Read pinout in while loop
20:20:57.712 -> High State: Still motion detected, no turning off!
20:20:57.782 -> Read pinout in while loop
20:20:57.819 -> High State: Still motion detected, no turning off!
20:20:57.855 -> Read pinout in while loop
20:20:57.891 -> High State: Still motion detected, no turning off!
20:20:57.963 -> Read pinout in while loop
20:20:57.963 -> High State: Still motion detected, no turning off!
20:20:58.035 -> Read pinout in while loop
20:20:58.071 -> High State: Still motion detected, no turning off!
20:20:58.107 -> Read pinout in while loop
20:20:58.143 -> High State: Still motion detected, no turning off!
20:20:58.179 -> Read pinout in while loop
20:20:58.215 -> High State: Still motion detected, no turning off!
20:20:58.286 -> Read pinout in while loop
20:20:58.323 -> High State: Still motion detected, no turning off!
20:20:58.359 -> Read pinout in while loop
20:20:58.395 -> High State: Still motion detected, no turning off!
20:20:58.431 -> Read pinout in while loop
20:20:58.467 -> High State: Still motion detected, no turning off!
20:20:58.539 -> Read pinout in while loop
20:20:58.539 -> High State: Still motion detected, no turning off!
20:20:58.610 -> Read pinout in while loop
20:20:58.647 -> High State: Still motion detected, no turning off!
20:20:58.683 -> Read pinout in while loop
20:20:58.719 -> High State: Still motion detected, no turning off!
20:20:58.754 -> Read pinout in while loop
20:20:58.790 -> Read pinout in while loop
20:20:58.827 -> Read pinout in while loop
20:20:58.863 -> Read pinout in while loop
20:20:58.899 -> Read pinout in while loop
Read pinout in while loop
20:21:08.553 -> Read pinout in while loop
20:21:08.589 -> Read pinout in while loop
20:21:08.625 -> Read pinout in while loop
20:21:08.625 -> Read pinout in while loop
20:21:08.661 -> Read pinout in while loop
20:21:08.697 -> Read pinout in while loop
20:21:08.733 -> Read pinout in while loop
20:21:08.769 -> Read pinout in while loop
20:21:08.769 -> Low State: No Motion detected!
20:21:08.803 -> Low State: No Motion detected!
20:21:08.839 -> Low State: No Motion detected!
20:21:08.875 -> High State: Motion detected!
20:21:08.911 -> Read pinout in while loop
20:21:08.947 -> High State: Still motion detected, no turning off!
20:21:08.983 -> Read pinout in while loop
20:21:09.019 -> High State: Still motion detected, no turning off!
20:21:09.091 -> Read pinout in while loop
20:21:09.091 -> High State: Still motion detected, no turning off!
20:21:09.163 -> Read pinout in while loop
20:21:09.200 -> High State: Still motion detected, no turning off!
20:21:09.235 -> Read pinout in while loop
20:21:09.271 -> High State: Still motion detected, no turning off!
20:21:09.343 -> Read pinout in while loop
20:21:09.343 -> High State: Still motion detected, no turning off!
20:21:09.415 -> Read pinout in while loop
20:21:09.451 -> High State: Still motion detected, no turning off!
20:21:09.487 -> Read pinout in while loop
20:21:09.523 -> High State: Still motion detected, no turning off!
20:21:09.559 -> Read pinout in while loop
20:21:09.596 -> High State: Still motion detected, no turning off!
20:21:09.667 -> Read pinout in while loop
20:21:09.667 -> High State: Still motion detected, no turning off!
20:21:09.739 -> Read pinout in while loop
20:21:09.776 -> High State: Still motion detected, no turning off!
20:21:09.811 -> Read pinout in while loop
20:21:09.847 -> High State: Still motion detected, no turning off!
20:21:09.919 -> Read pinout in while loop
20:21:09.919 -> High State: Still motion detected, no turning off!
20:21:09.991 -> Read pinout in while loop
20:21:10.027 -> Read pinout in while loop
20:21:10.027 -> Read pinout in while loop
20:21:10.064 -> Read pinout in while loop
20:21:10.100 -> Read pinout in while loop
Read pinout in while loop
20:21:19.785 -> Read pinout in while loop
20:21:19.821 -> Read pinout in while loop
20:21:19.857 -> Read pinout in while loop
20:21:19.893 -> Read pinout in while loop
20:21:19.929 -> Read pinout in while loop
20:21:19.929 -> Read pinout in while loop
20:21:19.965 -> Read pinout in while loop
20:21:20.001 -> Low State: No Motion detected!
20:21:20.038 -> Low State: No Motion detected!
20:21:20.072 -> Low State: No Motion detected!
20:21:20.108 -> High State: Motion detected!
20:21:20.144 -> Read pinout in while loop
20:21:20.144 -> High State: Still motion detected, no turning off!
20:21:20.216 -> Read pinout in while loop
20:21:20.252 -> High State: Still motion detected, no turning off!
20:21:20.288 -> Read pinout in while loop
20:21:20.324 -> High State: Still motion detected, no turning off!
20:21:20.360 -> Read pinout in while loop
20:21:20.396 -> High State: Still motion detected, no turning off!
20:21:20.466 -> Read pinout in while loop
20:21:20.502 -> High State: Still motion detected, no turning off!
20:21:20.538 -> Read pinout in while loop
20:21:20.574 -> High State: Still motion detected, no turning off!
20:21:20.610 -> Read pinout in while loop
20:21:20.647 -> High State: Still motion detected, no turning off!
20:21:20.717 -> Read pinout in while loop
20:21:20.717 -> High State: Still motion detected, no turning off!
20:21:20.789 -> Read pinout in while loop
20:21:20.825 -> High State: Still motion detected, no turning off!
20:21:20.859 -> Read pinout in while loop
20:21:20.895 -> High State: Still motion detected, no turning off!
20:21:20.965 -> Read pinout in while loop
20:21:20.965 -> High State: Still motion detected, no turning off!
20:21:21.037 -> Read pinout in while loop
20:21:21.073 -> High State: Still motion detected, no turning off!
20:21:21.109 -> Read pinout in while loop
20:21:21.145 -> High State: Still motion detected, no turning off!
20:21:21.181 -> Read pinout in while loop
20:21:21.217 -> Read pinout in while loop
20:21:21.253 -> Read pinout in while loop
20:21:21.289 -> Read pinout in while loop
20:21:21.323 -> Read pinout in while loop
Read pinout in while loop
20:21:28.924 -> Read pinout in while loop
20:21:28.961 -> Read pinout in while loop
20:21:28.996 -> Read pinout in while loop
20:21:29.033 -> Read pinout in while loop
20:21:29.033 -> Read pinout in while loop
20:21:29.068 -> Read pinout in while loop
20:21:29.104 -> High State: Still motion detected, no turning off!
20:21:29.140 -> Read pinout in while loop
20:21:29.176 -> High State: Still motion detected, no turning off!
20:21:29.246 -> Read pinout in while loop
20:21:29.283 -> High State: Still motion detected, no turning off!
20:21:29.319 -> Read pinout in while loop
20:21:29.355 -> High State: Still motion detected, no turning off!
20:21:29.391 -> Read pinout in while loop
20:21:29.427 -> High State: Still motion detected, no turning off!
20:21:29.496 -> Read pinout in while loop
20:21:29.496 -> High State: Still motion detected, no turning off!
20:21:29.568 -> Read pinout in while loop
20:21:29.604 -> High State: Still motion detected, no turning off!
20:21:29.640 -> Read pinout in while loop
20:21:29.676 -> High State: Still motion detected, no turning off!
20:21:29.748 -> Read pinout in while loop
20:21:29.748 -> High State: Still motion detected, no turning off!
20:21:29.820 -> Read pinout in while loop
20:21:29.856 -> High State: Still motion detected, no turning off!
20:21:29.892 -> Read pinout in while loop
20:21:29.928 -> High State: Still motion detected, no turning off!
20:21:29.964 -> Read pinout in while loop
20:21:30.000 -> High State: Still motion detected, no turning off!
20:21:30.072 -> Read pinout in while loop
20:21:30.072 -> High State: Still motion detected, no turning off!
20:21:30.142 -> Read pinout in while loop
20:21:30.178 -> Read pinout in while loop
20:21:30.214 -> Read pinout in while loop
20:21:30.214 -> Read pinout in while loop
20:21:30.250 -> Read pinout in while loop
20:21:30.286 -> Read pinout in while loop
Read pinout in while loop
20:21:33.841 -> Read pinout in while loop
20:21:33.841 -> Read pinout in while loop
20:21:33.877 -> Read pinout in while loop
20:21:33.910 -> Read pinout in while loop
20:21:33.946 -> Read pinout in while loop
20:21:33.982 -> Read pinout in while loop
20:21:33.982 -> High State: Still motion detected, no turning off!
20:21:34.054 -> Read pinout in while loop
20:21:34.090 -> High State: Still motion detected, no turning off!
20:21:34.126 -> Read pinout in while loop
20:21:34.162 -> High State: Still motion detected, no turning off!
20:21:34.198 -> Read pinout in while loop
20:21:34.234 -> High State: Still motion detected, no turning off!
20:21:34.306 -> Read pinout in while loop
20:21:34.342 -> High State: Still motion detected, no turning off!
20:21:34.378 -> Read pinout in while loop
20:21:34.414 -> High State: Still motion detected, no turning off!
20:21:34.450 -> Read pinout in while loop
20:21:34.486 -> High State: Still motion detected, no turning off!
20:21:34.558 -> Read pinout in while loop
20:21:34.558 -> High State: Still motion detected, no turning off!
20:21:34.630 -> Read pinout in while loop
20:21:34.666 -> High State: Still motion detected, no turning off!
20:21:34.702 -> Read pinout in while loop
20:21:34.738 -> High State: Still motion detected, no turning off!
20:21:34.774 -> Read pinout in while loop
20:21:34.810 -> High State: Still motion detected, no turning off!
20:21:34.882 -> Read pinout in while loop
20:21:34.918 -> High State: Still motion detected, no turning off!
20:21:34.954 -> Read pinout in while loop
20:21:34.990 -> High State: Still motion detected, no turning off!
20:21:35.026 -> Read pinout in while loop
20:21:35.062 -> Read pinout in while loop
20:21:35.098 -> Read pinout in while loop
20:21:35.134 -> Read pinout in while loop
Read pinout in while loop
20:21:44.964 -> Read pinout in while loop
20:21:45.000 -> Read pinout in while loop
20:21:45.036 -> Read pinout in while loop
20:21:45.036 -> Low State: No Motion detected!
20:21:45.072 -> High State: Motion detected!
20:21:45.108 -> Read pinout in while loop
20:21:45.143 -> High State: Still motion detected, no turning off!
20:21:45.178 -> Read pinout in while loop
20:21:45.215 -> High State: Still motion detected, no turning off!
20:21:45.286 -> Read pinout in while loop
20:21:45.322 -> High State: Still motion detected, no turning off!
20:21:45.358 -> Read pinout in while loop
20:21:45.395 -> High State: Still motion detected, no turning off!
20:21:45.431 -> Read pinout in while loop
20:21:45.466 -> High State: Still motion detected, no turning off!
20:21:45.536 -> Read pinout in while loop
20:21:45.536 -> High State: Still motion detected, no turning off!
20:21:45.608 -> Read pinout in while loop
20:21:45.644 -> High State: Still motion detected, no turning off!
20:21:45.680 -> Read pinout in while loop
20:21:45.716 -> High State: Still motion detected, no turning off!
20:21:45.788 -> Read pinout in while loop
20:21:45.788 -> High State: Still motion detected, no turning off!
20:21:45.860 -> Read pinout in while loop
20:21:45.896 -> High State: Still motion detected, no turning off!
20:21:45.933 -> Read pinout in while loop
20:21:45.968 -> High State: Still motion detected, no turning off!
20:21:46.004 -> Read pinout in while loop
20:21:46.040 -> High State: Still motion detected, no turning off!
20:21:46.113 -> Read pinout in while loop
20:21:46.113 -> High State: Still motion detected, no turning off!
20:21:46.182 -> Read pinout in while loop
20:21:46.218 -> Read pinout in while loop
20:21:46.254 -> Read pinout in while loop
20:21:46.254 -> Read pinout in while loop
20:21:46.291 -> Read pinout in while loop
Read pinout in while loop
20:21:56.088 -> Read pinout in while loop
20:21:56.124 -> Read pinout in while loop
20:21:56.124 -> Read pinout in while loop
20:21:56.161 -> Read pinout in while loop
20:21:56.196 -> Low State: No Motion detected!
20:21:56.232 -> Low State: No Motion detected!
20:21:56.268 -> Low State: No Motion detected!
20:21:56.304 -> Low State: No Motion detected!
20:21:56.340 -> High State: Motion detected!
20:21:56.376 -> Read pinout in while loop
20:21:56.376 -> High State: Still motion detected, no turning off!
20:21:56.447 -> Read pinout in while loop
20:21:56.483 -> High State: Still motion detected, no turning off!
20:21:56.519 -> Read pinout in while loop
20:21:56.555 -> High State: Still motion detected, no turning off!
20:21:56.591 -> Read pinout in while loop
20:21:56.627 -> High State: Still motion detected, no turning off!
20:21:56.699 -> Read pinout in while loop
20:21:56.735 -> High State: Still motion detected, no turning off!
20:21:56.771 -> Read pinout in while loop
20:21:56.807 -> High State: Still motion detected, no turning off!
20:21:56.843 -> Read pinout in while loop
20:21:56.879 -> High State: Still motion detected, no turning off!
20:21:56.951 -> Read pinout in while loop
20:21:56.951 -> High State: Still motion detected, no turning off!
20:21:57.023 -> Read pinout in while loop
20:21:57.059 -> High State: Still motion detected, no turning off!
20:21:57.095 -> Read pinout in while loop
20:21:57.131 -> High State: Still motion detected, no turning off!
20:21:57.167 -> Read pinout in while loop
20:21:57.203 -> High State: Still motion detected, no turning off!
20:21:57.275 -> Read pinout in while loop
20:21:57.311 -> High State: Still motion detected, no turning off!
20:21:57.347 -> Read pinout in while loop
20:21:57.383 -> High State: Still motion detected, no turning off!
20:21:57.419 -> Read pinout in while loop
20:21:57.456 -> Read pinout in while loop
20:21:57.493 -> Read pinout in while loop
20:21:57.528 -> Read pinout in while loop
20:21:57.528 -> Read pinout in while loop
20:21:57.565 -> Read pinout in while loop
20:21:57.600 -> Read pinout in while loop
20:21:57.637 -> Read pinout in while loop
20:21:57.673 -> Read pinout in while loop
20:21:57.673 -> Read pinout in while loop
20:21:57.708 -> Read pinout in while loop
20:21:57.745 -> Read pinout in while loop
20:21:57.780 -> Read pinout in while loop
20:21:57.780 -> Read pinout in while loop
20:21:57.817 -> Read pinout in while loop
20:21:57.852 -> Read pinout in while loop
20:21:57.888 -> Read pinout in while loop
20:21:57.925 -> Read pinout in while loop
20:21:57.925 -> Read pinout in while loop
20:21:57.960 -> Read pinout in while loop
20:21:57.997 -> Read pinout in while loop
20:21:58.032 -> Read pinout in while loop
20:21:58.032 -> Read pinout in while loop
20:21:58.069 -> Read pinout in while loop
20:21:58.104 -> Read pinout in while loop
20:21:58.141 -> Read pinout in while loop
20:21:58.177 -> Read pinout in while loop
20:21:58.177 -> Read pinout in while loop
20:21:58.212 -> Read pinout in while loop
20:21:58.247 -> Read pinout in while loop
20:21:58.283 -> Read pinout in while loop
20:21:58.319 -> Read pinout in while loop
20:21:58.319 -> Read pinout in while loop
20:21:58.355 -> Read pinout in while loop
20:21:58.391 -> Read pinout in while loop
20:21:58.427 -> Read pinout in while loop
20:21:58.427 -> Read pinout in while loop
20:21:58.463 -> Read pinout in while loop
20:21:58.497 -> Read pinout in while loop
20:21:58.533 -> Read pinout in while loop
20:21:58.569 -> Read pinout in while loop
20:21:58.569 -> Read pinout in while loop
20:21:58.605 -> Read pinout in while loop
20:21:58.641 -> Read pinout in while loop
20:21:58.677 -> Read pinout in while loop
20:21:58.713 -> Read pinout in while loop
20:21:58.713 -> Read pinout in while loop
20:21:58.749 -> Read pinout in while loop
20:21:58.785 -> Read pinout in while loop
20:21:58.821 -> Read pinout in while loop
20:21:58.821 -> Read pinout in while loop
20:21:58.857 -> Read pinout in while loop
20:21:58.893 -> Read pinout in while loop
20:21:58.929 -> Read pinout in while loop
20:21:58.965 -> Read pinout in while loop
20:21:58.965 -> Read pinout in while loop
20:21:59.001 -> Read pinout in while loop
20:21:59.037 -> Read pinout in while loop
20:21:59.073 -> Read pinout in while loop
20:21:59.073 -> Read pinout in while loop
20:21:59.109 -> Read pinout in while loop
20:21:59.145 -> Read pinout in while loop
20:21:59.181 -> Read pinout in while loop
20:21:59.217 -> Read pinout in while loop
20:21:59.217 -> Read pinout in while loop
20:21:59.253 -> Read pinout in while loop
20:21:59.289 -> Read pinout in while loop
20:21:59.325 -> Read pinout in while loop
20:21:59.325 -> Read pinout in while loop
20:21:59.361 -> Read pinout in while loop
20:21:59.397 -> Read pinout in while loop
20:21:59.431 -> Read pinout in while loop
20:21:59.467 -> Read pinout in while loop
20:21:59.467 -> Read pinout in while loop
20:21:59.503 -> Read pinout in while loop
20:21:59.539 -> Read pinout in while loop
20:21:59.575 -> Read pinout in while loop
20:21:59.611 -> Read pinout in while loop
20:21:59.611 -> Read pinout in while loop
20:21:59.647 -> Read pinout in while loop
20:21:59.683 -> Read pinout in while loop
20:21:59.719 -> Read pinout in while loop
20:21:59.719 -> Read pinout in while loop
20:21:59.755 -> Read pinout in while loop
20:21:59.791 -> Read pinout in while loop
20:21:59.827 -> Read pinout in while loop
20:21:59.863 -> Read pinout in while loop
20:21:59.863 -> Read pinout in while loop
20:21:59.899 -> Read pinout in while loop
20:21:59.935 -> Read pinout in while loop
20:21:59.971 -> Read pinout in while loop
20:22:00.007 -> Read pinout in while loop
20:22:00.007 -> Read pinout in while loop
20:22:00.043 -> Read pinout in while loop
20:22:00.079 -> Read pinout in while loop
20:22:00.115 -> Read pinout in while loop
20:22:00.115 -> Read pinout in while loop
20:22:00.151 -> Read pinout in while loop
20:22:00.187 -> Read pinout in while loop
20:22:00.223 -> Read pinout in while loop
20:22:00.259 -> Read pinout in while loop
20:22:00.259 -> Read pinout in while loop
20:22:00.295 -> Read pinout in while loop
20:22:00.331 -> Read pinout in while loop
20:22:00.367 -> Read pinout in while loop
20:22:00.367 -> Read pinout in while loop
20:22:00.403 -> Read pinout in while loop
20:22:00.439 -> Read pinout in while loop
20:22:00.475 -> Read pinout in while loop
20:22:00.511 -> Read pinout in while loop
20:22:00.511 -> Read pinout in while loop
20:22:00.547 -> Read pinout in while loop
20:22:00.583 -> Read pinout in while loop
20:22:00.619 -> Read pinout in while loop
20:22:00.619 -> Read pinout in while loop
20:22:00.655 -> Read pinout in while loop
20:22:00.691 -> Read pinout in while loop
20:22:00.727 -> Read pinout in while loop
20:22:00.763 -> Read pinout in while loop
20:22:00.763 -> Read pinout in while loop
20:22:00.799 -> Read pinout in while loop
20:22:00.835 -> Read pinout in while loop
20:22:00.871 -> Read pinout in while loop
20:22:00.907 -> Read pinout in while loop
20:22:00.907 -> Read pinout in while loop
20:22:00.943 -> Read pinout in while loop
20:22:00.979 -> Read pinout in while loop
20:22:01.015 -> Read pinout in while loop
20:22:01.015 -> Read pinout in while loop
20:22:01.051 -> Read pinout in while loop
20:22:01.087 -> Read pinout in while loop
20:22:01.123 -> Read pinout in while loop
20:22:01.159 -> Read pinout in while loop
20:22:01.159 -> Read pinout in while loop
20:22:01.195 -> Read pinout in while loop
20:22:01.231 -> Read pinout in while loop
20:22:01.267 -> Read pinout in while loop
20:22:01.267 -> Read pinout in while loop
20:22:01.303 -> Read pinout in while loop
20:22:01.339 -> Read pinout in while loop
20:22:01.375 -> Read pinout in while loop
20:22:01.411 -> Read pinout in while loop
20:22:01.411 -> Read pinout in while loop
20:22:01.447 -> Read pinout in while loop
20:22:01.483 -> Read pinout in while loop
20:22:01.519 -> Read pinout in while loop
20:22:01.519 -> Read pinout in while loop
20:22:01.553 -> Read pinout in while loop
20:22:01.589 -> Read pinout in while loop
20:22:01.625 -> Read pinout in while loop
20:22:01.661 -> Read pinout in while loop
20:22:01.661 -> Read pinout in while loop
20:22:01.697 -> Read pinout in while loop
20:22:01.733 -> Read pinout in while loop
20:22:01.769 -> Read pinout in while loop
20:22:01.805 -> Read pinout in while loop
20:22:01.805 -> Read pinout in while loop
20:22:01.841 -> Read pinout in while loop
20:22:01.877 -> Read pinout in while loop
20:22:01.913 -> Read pinout in while loop
20:22:01.913 -> Read pinout in while loop
20:22:01.949 -> Read pinout in while loop
20:22:01.985 -> Read pinout in while loop
20:22:02.021 -> Read pinout in while loop
20:22:02.057 -> Read pinout in while loop
20:22:02.057 -> Read pinout in while loop
20:22:02.093 -> Read pinout in while loop
20:22:02.131 -> Read pinout in while loop
20:22:02.167 -> Read pinout in while loop
20:22:02.167 -> Read pinout in while loop
20:22:02.203 -> Read pinout in while loop
20:22:02.239 -> Read pinout in while loop
20:22:02.276 -> Read pinout in while loop
20:22:02.309 -> Read pinout in while loop
20:22:02.309 -> Read pinout in while loop
20:22:02.345 -> Read pinout in while loop
20:22:02.381 -> Read pinout in while loop
20:22:02.417 -> Read pinout in while loop
20:22:02.451 -> Read pinout in while loop
20:22:02.451 -> Read pinout in while loop
20:22:02.484 -> Read pinout in while loop
20:22:02.520 -> Read pinout in while loop
20:22:02.556 -> Read pinout in while loop
20:22:02.592 -> Read pinout in while loop
20:22:02.592 -> Read pinout in while loop
20:22:02.628 -> Read pinout in while loop
20:22:02.664 -> Read pinout in while loop
20:22:02.700 -> Read pinout in while loop
20:22:02.700 -> Read pinout in while loop
20:22:02.736 -> Read pinout in while loop
20:22:02.772 -> Read pinout in while loop
20:22:02.808 -> Read pinout in while loop
20:22:02.844 -> Read pinout in while loop
20:22:02.844 -> Read pinout in while loop
20:22:02.880 -> Read pinout in while loop
20:22:02.913 -> Read pinout in while loop
20:22:02.950 -> Read pinout in while loop
20:22:02.985 -> Read pinout in while loop
20:22:02.985 -> Read pinout in while loop
20:22:03.019 -> Read pinout in while loop
20:22:03.055 -> Read pinout in while loop
20:22:03.091 -> Read pinout in while loop
20:22:03.127 -> Read pinout in while loop
20:22:03.127 -> Read pinout in while loop
20:22:03.163 -> Read pinout in while loop
20:22:03.199 -> Read pinout in while loop
20:22:03.235 -> Read pinout in while loop
20:22:03.235 -> Read pinout in while loop
20:22:03.271 -> Read pinout in while loop
20:22:03.307 -> Read pinout in while loop
20:22:03.343 -> Read pinout in while loop
20:22:03.379 -> Read pinout in while loop
20:22:03.379 -> Read pinout in while loop
20:22:03.415 -> Read pinout in while loop
20:22:03.451 -> Read pinout in while loop
20:22:03.487 -> Read pinout in while loop
20:22:03.487 -> Read pinout in while loop
20:22:03.523 -> Read pinout in while loop
20:22:03.559 -> Read pinout in while loop
20:22:03.595 -> Read pinout in while loop
20:22:03.631 -> Read pinout in while loop
20:22:03.631 -> Read pinout in while loop
20:22:03.667 -> Read pinout in while loop
20:22:03.703 -> Read pinout in while loop
20:22:03.739 -> Read pinout in while loop
20:22:03.775 -> Read pinout in while loop
20:22:03.775 -> Read pinout in while loop
20:22:03.811 -> Read pinout in while loop
20:22:03.847 -> Read pinout in while loop
20:22:03.883 -> Read pinout in while loop
20:22:03.883 -> Read pinout in while loop
20:22:03.919 -> Read pinout in while loop
20:22:03.955 -> Read pinout in while loop
20:22:03.991 -> Read pinout in while loop
20:22:04.027 -> Read pinout in while loop
20:22:04.027 -> Read pinout in while loop
20:22:04.061 -> Read pinout in while loop
20:22:04.098 -> Read pinout in while loop
20:22:04.133 -> Read pinout in while loop
20:22:04.168 -> Read pinout in while loop
20:22:04.168 -> Read pinout in while loop
20:22:04.204 -> Read pinout in while loop
20:22:04.239 -> Read pinout in while loop
20:22:04.275 -> Read pinout in while loop
20:22:04.275 -> Read pinout in while loop
20:22:04.311 -> Read pinout in while loop
20:22:04.347 -> Read pinout in while loop
20:22:04.383 -> Read pinout in while loop
20:22:04.419 -> Read pinout in while loop
20:22:04.419 -> Read pinout in while loop
20:22:04.455 -> Read pinout in while loop
20:22:04.489 -> Read pinout in while loop
20:22:04.525 -> Read pinout in while loop
20:22:04.561 -> Read pinout in while loop
20:22:04.561 -> Read pinout in while loop
20:22:04.597 -> Read pinout in while loop
20:22:04.633 -> Read pinout in while loop
20:22:04.669 -> Read pinout in while loop
20:22:04.669 -> Read pinout in while loop
20:22:04.705 -> Read pinout in while loop
20:22:04.741 -> Read pinout in while loop
20:22:04.777 -> Read pinout in while loop
20:22:04.813 -> Read pinout in while loop
20:22:04.813 -> Read pinout in while loop
20:22:04.849 -> Read pinout in while loop
20:22:04.885 -> Read pinout in while loop
20:22:04.921 -> Read pinout in while loop
20:22:04.957 -> Read pinout in while loop
20:22:04.957 -> Read pinout in while loop
20:22:04.993 -> Read pinout in while loop
20:22:05.029 -> Read pinout in while loop
20:22:05.065 -> Read pinout in while loop
20:22:05.065 -> Read pinout in while loop
20:22:05.101 -> Read pinout in while loop
20:22:05.137 -> Read pinout in while loop
20:22:05.173 -> Read pinout in while loop
20:22:05.209 -> Read pinout in while loop
20:22:05.209 -> Read pinout in while loop
20:22:05.245 -> Read pinout in while loop
20:22:05.281 -> Read pinout in while loop
20:22:05.317 -> Read pinout in while loop
20:22:05.317 -> Read pinout in while loop
20:22:05.353 -> Read pinout in while loop
20:22:05.389 -> Read pinout in while loop
20:22:05.425 -> Read pinout in while loop
20:22:05.461 -> Read pinout in while loop
20:22:05.461 -> Read pinout in while loop
20:22:05.497 -> Read pinout in while loop
20:22:05.533 -> Read pinout in while loop
20:22:05.569 -> Read pinout in while loop
20:22:05.569 -> Read pinout in while loop
20:22:05.605 -> Read pinout in while loop
20:22:05.641 -> Read pinout in while loop
20:22:05.677 -> Read pinout in while loop
20:22:05.713 -> Read pinout in while loop
20:22:05.713 -> Read pinout in while loop
20:22:05.749 -> Read pinout in while loop
20:22:05.785 -> Read pinout in while loop
20:22:05.821 -> Read pinout in while loop
20:22:05.857 -> Read pinout in while loop
20:22:05.857 -> Read pinout in while loop
20:22:05.893 -> Read pinout in while loop
20:22:05.929 -> Read pinout in while loop
20:22:05.965 -> Read pinout in while loop
20:22:05.965 -> Read pinout in while loop
20:22:06.001 -> Read pinout in while loop
20:22:06.037 -> Read pinout in while loop
20:22:06.073 -> Read pinout in while loop
20:22:06.109 -> Read pinout in while loop
20:22:06.109 -> Read pinout in while loop
20:22:06.143 -> Read pinout in while loop
20:22:06.179 -> Read pinout in while loop
20:22:06.215 -> Read pinout in while loop
20:22:06.251 -> Read pinout in while loop
20:22:06.251 -> Read pinout in while loop
20:22:06.285 -> Read pinout in while loop
20:22:06.319 -> Read pinout in while loop
20:22:06.355 -> Read pinout in while loop
20:22:06.389 -> Read pinout in while loop
20:22:06.389 -> Read pinout in while loop
20:22:06.425 -> Read pinout in while loop
20:22:06.461 -> Read pinout in while loop
20:22:06.497 -> Read pinout in while loop
20:22:06.497 -> Read pinout in while loop
20:22:06.533 -> Read pinout in while loop
20:22:06.569 -> Read pinout in while loop
20:22:06.605 -> Read pinout in while loop
20:22:06.641 -> Read pinout in while loop
20:22:06.641 -> Read pinout in while loop
20:22:06.677 -> Read pinout in while loop
20:22:06.713 -> Read pinout in while loop
20:22:06.749 -> Read pinout in while loop
20:22:06.785 -> Read pinout in while loop
20:22:06.785 -> Read pinout in while loop
20:22:06.821 -> Read pinout in while loop
20:22:06.857 -> Read pinout in while loop
20:22:06.893 -> Read pinout in while loop
20:22:06.893 -> Read pinout in while loop
20:22:06.929 -> Read pinout in while loop
20:22:06.965 -> Read pinout in while loop
20:22:07.001 -> Read pinout in while loop
20:22:07.037 -> Read pinout in while loop
20:22:07.037 -> Read pinout in while loop
20:22:07.073 -> Read pinout in while loop
20:22:07.109 -> Read pinout in while loop
20:22:07.145 -> Read pinout in while loop
20:22:07.145 -> Read pinout in while loop
20:22:07.181 -> Read pinout in while loop
20:22:07.217 -> Read pinout in while loop
20:22:07.253 -> Read pinout in while loop
20:22:07.289 -> Read pinout in while loop
20:22:07.289 -> Read pinout in while loop
20:22:07.325 -> Read pinout in while loop
20:22:07.361 -> Read pinout in while loop
20:22:07.397 -> Read pinout in while loop
20:22:07.397 -> Read pinout in while loop
20:22:07.433 -> Low State: No Motion detected!
20:22:07.469 -> Low State: No Motion detected!
20:22:07.505 -> Low State: No Motion detected!
20:22:07.541 -> Low State: No Motion detected!
20:22:07.577 -> Low State: No Motion detected!
20:22:07.613 -> Low State: No Motion detected!
20:22:07.646 -> Low State: No Motion detected!
20:22:07.682 -> High State: Motion detected!
20:22:07.718 -> Read pinout in while loop
20:22:07.718 -> High State: Still motion detected, no turning off!
20:22:07.790 -> Read pinout in while loop
20:22:07.826 -> High State: Still motion detected, no turning off!
20:22:07.862 -> Read pinout in while loop
20:22:07.898 -> High State: Still motion detected, no turning off!
20:22:07.970 -> Read pinout in while loop
20:22:07.970 -> High State: Still motion detected, no turning off!
20:22:08.043 -> Read pinout in while loop
20:22:08.079 -> High State: Still motion detected, no turning off!
20:22:08.115 -> Read pinout in while loop
20:22:08.151 -> High State: Still motion detected, no turning off!
20:22:08.187 -> Read pinout in while loop
20:22:08.223 -> High State: Still motion detected, no turning off!
20:22:08.295 -> Read pinout in while loop
20:22:08.295 -> High State: Still motion detected, no turning off!
20:22:08.367 -> Read pinout in while loop
20:22:08.403 -> High State: Still motion detected, no turning off!
20:22:08.439 -> Read pinout in while loop
20:22:08.475 -> High State: Still motion detected, no turning off!
20:22:08.547 -> Read pinout in while loop
20:22:08.547 -> High State: Still motion detected, no turning off!
20:22:08.619 -> Read pinout in while loop
20:22:08.655 -> High State: Still motion detected, no turning off!
20:22:08.691 -> Read pinout in while loop
20:22:08.727 -> High State: Still motion detected, no turning off!
20:22:08.761 -> Read pinout in while loop
20:22:08.797 -> Read pinout in while loop
20:22:08.833 -> Read pinout in while loop
20:22:08.866 -> Read pinout in while loop
20:22:08.902 -> Read pinout in while loop
20:22:08.902 -> Read pinout in while loop
20:22:08.938 -> Read pinout in while loop
20:22:08.975 -> Read pinout in while loop
20:22:09.010 -> Read pinout in while loop
20:22:09.047 -> Read pinout in while loop
20:22:09.047 -> Read pinout in while loop
20:22:09.082 -> Read pinout in while loop
20:22:09.119 -> Read pinout in while loop
20:22:09.154 -> Read pinout in while loop
20:22:09.154 -> Read pinout in while loop
20:22:09.188 -> Read pinout in while loop
20:22:09.224 -> Read pinout in while loop
20:22:09.260 -> Read pinout in while loop
20:22:09.296 -> Read pinout in while loop
20:22:09.296 -> Read pinout in while loop
20:22:09.332 -> Read pinout in while loop
20:22:09.368 -> Read pinout in while loop
20:22:09.401 -> Read pinout in while loop
20:22:09.437 -> Read pinout in while loop
20:22:09.437 -> Read pinout in while loop
20:22:09.473 -> Read pinout in while loop
20:22:09.509 -> Read pinout in while loop
20:22:09.545 -> Read pinout in while loop
20:22:09.581 -> Read pinout in while loop
20:22:09.581 -> Read pinout in while loop
20:22:09.617 -> Read pinout in while loop
20:22:09.653 -> Read pinout in while loop
20:22:09.689 -> Read pinout in while loop
20:22:09.689 -> Read pinout in while loop
20:22:09.726 -> Read pinout in while loop
20:22:09.762 -> Read pinout in while loop
20:22:09.798 -> Read pinout in while loop
20:22:09.834 -> Read pinout in while loop
20:22:09.834 -> Read pinout in while loop
20:22:09.870 -> Read pinout in while loop
20:22:09.906 -> Read pinout in while loop
20:22:09.939 -> Read pinout in while loop
20:22:09.975 -> Read pinout in while loop
20:22:09.975 -> Read pinout in while loop
20:22:10.011 -> Read pinout in while loop
20:22:10.047 -> Read pinout in while loop
20:22:10.083 -> Read pinout in while loop
20:22:10.083 -> Read pinout in while loop
20:22:10.119 -> Read pinout in while loop
20:22:10.155 -> Read pinout in while loop
20:22:10.191 -> Read pinout in while loop
20:22:10.227 -> Read pinout in while loop
20:22:10.227 -> Read pinout in while loop
20:22:10.260 -> Read pinout in while loop
20:22:10.296 -> Read pinout in while loop
20:22:10.332 -> Read pinout in while loop
20:22:10.368 -> Read pinout in while loop
20:22:10.368 -> Read pinout in while loop
20:22:10.404 -> Read pinout in while loop
20:22:10.440 -> Read pinout in while loop
20:22:10.476 -> Read pinout in while loop
20:22:10.476 -> Read pinout in while loop
20:22:10.512 -> Read pinout in while loop
20:22:10.548 -> Read pinout in while loop
20:22:10.584 -> Read pinout in while loop
20:22:10.620 -> Read pinout in while loop
20:22:10.620 -> Read pinout in while loop
20:22:10.656 -> Read pinout in while loop
20:22:10.692 -> Read pinout in while loop
20:22:10.728 -> Read pinout in while loop
20:22:10.728 -> Read pinout in while loop
20:22:10.764 -> Read pinout in while loop
20:22:10.800 -> Read pinout in while loop
20:22:10.836 -> Read pinout in while loop
20:22:10.872 -> Read pinout in while loop
20:22:10.872 -> Read pinout in while loop
20:22:10.908 -> Read pinout in while loop
20:22:10.944 -> Read pinout in while loop
20:22:10.980 -> Read pinout in while loop
20:22:11.014 -> Read pinout in while loop
20:22:11.014 -> Read pinout in while loop
20:22:11.050 -> Read pinout in while loop
20:22:11.086 -> Read pinout in while loop
20:22:11.122 -> Read pinout in while loop
20:22:11.122 -> Read pinout in while loop
20:22:11.158 -> Read pinout in while loop
20:22:11.195 -> Read pinout in while loop
20:22:11.231 -> Read pinout in while loop
20:22:11.264 -> Read pinout in while loop
20:22:11.264 -> Read pinout in while loop
20:22:11.300 -> Read pinout in while loop
20:22:11.336 -> Read pinout in while loop
20:22:11.372 -> Read pinout in while loop
20:22:11.408 -> Read pinout in while loop
20:22:11.408 -> Read pinout in while loop
20:22:11.444 -> Read pinout in while loop
20:22:11.480 -> Read pinout in while loop
20:22:11.516 -> Read pinout in while loop
20:22:11.516 -> Read pinout in while loop
20:22:11.551 -> Read pinout in while loop
20:22:11.587 -> Read pinout in while loop
20:22:11.623 -> Read pinout in while loop
20:22:11.659 -> Read pinout in while loop
20:22:11.659 -> Read pinout in while loop
20:22:11.695 -> Read pinout in while loop
20:22:11.731 -> Read pinout in while loop
20:22:11.767 -> Read pinout in while loop
20:22:11.803 -> Read pinout in while loop
20:22:11.803 -> Read pinout in while loop
20:22:11.839 -> Read pinout in while loop
20:22:11.875 -> Read pinout in while loop
20:22:11.911 -> Read pinout in while loop
20:22:11.911 -> Read pinout in while loop
20:22:11.947 -> Read pinout in while loop
20:22:11.983 -> Read pinout in while loop
20:22:12.019 -> Read pinout in while loop
20:22:12.054 -> Read pinout in while loop
20:22:12.054 -> Read pinout in while loop
20:22:12.090 -> Read pinout in while loop
20:22:12.127 -> Read pinout in while loop
20:22:12.162 -> Read pinout in while loop
20:22:12.162 -> Read pinout in while loop
20:22:12.199 -> Read pinout in while loop
20:22:12.234 -> Read pinout in while loop
20:22:12.269 -> Read pinout in while loop
20:22:12.305 -> Read pinout in while loop
20:22:12.305 -> Read pinout in while loop
20:22:12.341 -> Read pinout in while loop
20:22:12.377 -> Read pinout in while loop
20:22:12.413 -> Read pinout in while loop
20:22:12.449 -> Read pinout in while loop
20:22:12.449 -> Read pinout in while loop
20:22:12.482 -> Read pinout in while loop
20:22:12.518 -> Read pinout in while loop
20:22:12.555 -> Read pinout in while loop
20:22:12.590 -> Read pinout in while loop
20:22:12.590 -> Read pinout in while loop
20:22:12.627 -> Read pinout in while loop
20:22:12.660 -> Read pinout in while loop
20:22:12.696 -> Read pinout in while loop
20:22:12.732 -> Read pinout in while loop
20:22:12.732 -> Read pinout in while loop
20:22:12.768 -> Read pinout in while loop
20:22:12.804 -> Read pinout in while loop
20:22:12.840 -> Read pinout in while loop
20:22:12.840 -> Read pinout in while loop
20:22:12.876 -> Read pinout in while loop
20:22:12.912 -> Read pinout in while loop
20:22:12.948 -> Read pinout in while loop
20:22:12.984 -> Read pinout in while loop
20:22:12.984 -> Read pinout in while loop
20:22:13.020 -> Read pinout in while loop
20:22:13.056 -> Read pinout in while loop
20:22:13.092 -> Read pinout in while loop
20:22:13.092 -> Read pinout in while loop
20:22:13.128 -> Read pinout in while loop
20:22:13.164 -> Read pinout in while loop
20:22:13.200 -> Read pinout in while loop
20:22:13.236 -> Read pinout in while loop
20:22:13.236 -> Read pinout in while loop
20:22:13.272 -> Read pinout in while loop
20:22:13.308 -> Read pinout in while loop
20:22:13.344 -> Read pinout in while loop
20:22:13.344 -> Read pinout in while loop
20:22:13.380 -> Read pinout in while loop
20:22:13.416 -> Read pinout in while loop
20:22:13.452 -> Read pinout in while loop
20:22:13.488 -> Read pinout in while loop
20:22:13.488 -> Read pinout in while loop
20:22:13.524 -> Read pinout in while loop
20:22:13.560 -> Read pinout in while loop
20:22:13.596 -> Read pinout in while loop
20:22:13.632 -> Read pinout in while loop
20:22:13.632 -> Read pinout in while loop
20:22:13.668 -> Read pinout in while loop
20:22:13.704 -> Read pinout in while loop
20:22:13.740 -> Read pinout in while loop
20:22:13.740 -> Read pinout in while loop
20:22:13.776 -> Read pinout in while loop
20:22:13.812 -> Read pinout in while loop
20:22:13.848 -> Read pinout in while loop
20:22:13.884 -> Read pinout in while loop
20:22:13.884 -> Read pinout in while loop
20:22:13.920 -> Read pinout in while loop
20:22:13.956 -> Read pinout in while loop
20:22:13.992 -> Read pinout in while loop
20:22:13.992 -> Read pinout in while loop
20:22:14.028 -> Read pinout in while loop
20:22:14.064 -> Read pinout in while loop
20:22:14.100 -> Read pinout in while loop
20:22:14.134 -> Read pinout in while loop
20:22:14.134 -> Read pinout in while loop
20:22:14.171 -> Read pinout in while loop
20:22:14.204 -> Read pinout in while loop
20:22:14.240 -> Read pinout in while loop
20:22:14.276 -> Read pinout in while loop
20:22:14.276 -> Read pinout in while loop
20:22:14.309 -> Read pinout in while loop
20:22:14.345 -> Read pinout in while loop
20:22:14.381 -> Read pinout in while loop
20:22:14.417 -> Read pinout in while loop
20:22:14.417 -> Read pinout in while loop
20:22:14.453 -> Read pinout in while loop
20:22:14.489 -> Read pinout in while loop
20:22:14.525 -> Read pinout in while loop
20:22:14.525 -> Read pinout in while loop
20:22:14.561 -> Read pinout in while loop
20:22:14.597 -> Read pinout in while loop
20:22:14.633 -> Read pinout in while loop
20:22:14.669 -> Read pinout in while loop
20:22:14.669 -> Read pinout in while loop
20:22:14.705 -> Read pinout in while loop
20:22:14.741 -> Read pinout in while loop
20:22:14.777 -> Read pinout in while loop
20:22:14.813 -> Read pinout in while loop
20:22:14.813 -> Read pinout in while loop
20:22:14.849 -> Read pinout in while loop
20:22:14.885 -> Read pinout in while loop
20:22:14.921 -> Read pinout in while loop
20:22:14.921 -> Read pinout in while loop
20:22:14.957 -> Read pinout in while loop
20:22:14.993 -> Read pinout in while loop
20:22:15.029 -> Read pinout in while loop
20:22:15.065 -> Read pinout in while loop
20:22:15.065 -> Read pinout in while loop
20:22:15.101 -> Read pinout in while loop
20:22:15.134 -> Read pinout in while loop
20:22:15.170 -> Read pinout in while loop
20:22:15.206 -> Read pinout in while loop
20:22:15.206 -> Read pinout in while loop
20:22:15.242 -> Read pinout in while loop
20:22:15.278 -> Read pinout in while loop
20:22:15.314 -> Read pinout in while loop
20:22:15.314 -> Read pinout in while loop
20:22:15.350 -> Read pinout in while loop
20:22:15.386 -> Read pinout in while loop
20:22:15.422 -> Read pinout in while loop
20:22:15.458 -> Read pinout in while loop
20:22:15.458 -> Read pinout in while loop
20:22:15.494 -> Read pinout in while loop
20:22:15.530 -> Read pinout in while loop
20:22:15.566 -> Read pinout in while loop
20:22:15.566 -> Read pinout in while loop
20:22:15.602 -> Read pinout in while loop
20:22:15.638 -> Read pinout in while loop
20:22:15.674 -> Read pinout in while loop
20:22:15.710 -> Read pinout in while loop
20:22:15.710 -> Read pinout in while loop
20:22:15.746 -> Read pinout in while loop
20:22:15.782 -> Read pinout in while loop
20:22:15.818 -> Read pinout in while loop
20:22:15.818 -> Read pinout in while loop
20:22:15.854 -> Read pinout in while loop
20:22:15.890 -> Read pinout in while loop
20:22:15.926 -> Read pinout in while loop
20:22:15.962 -> Read pinout in while loop
20:22:15.962 -> Read pinout in while loop
20:22:15.998 -> Read pinout in while loop
20:22:16.034 -> Read pinout in while loop
20:22:16.070 -> Read pinout in while loop
20:22:16.106 -> Read pinout in while loop
20:22:16.106 -> Read pinout in while loop
20:22:16.142 -> Read pinout in while loop
20:22:16.178 -> Read pinout in while loop
20:22:16.214 -> Read pinout in while loop
20:22:16.214 -> Read pinout in while loop
20:22:16.250 -> Read pinout in while loop
20:22:16.286 -> Read pinout in while loop
20:22:16.322 -> Read pinout in while loop
20:22:16.358 -> Read pinout in while loop
20:22:16.358 -> Read pinout in while loop
20:22:16.395 -> Read pinout in while loop
20:22:16.428 -> Read pinout in while loop
20:22:16.464 -> Read pinout in while loop
20:22:16.500 -> Read pinout in while loop
20:22:16.500 -> Read pinout in while loop
20:22:16.536 -> Read pinout in while loop
20:22:16.572 -> Read pinout in while loop
20:22:16.608 -> Read pinout in while loop
20:22:16.608 -> Read pinout in while loop
20:22:16.644 -> Read pinout in while loop
20:22:16.680 -> Read pinout in while loop
20:22:16.716 -> Read pinout in while loop
20:22:16.752 -> Read pinout in while loop
20:22:16.752 -> Read pinout in while loop
20:22:16.787 -> Read pinout in while loop
20:22:16.823 -> Read pinout in while loop
20:22:16.859 -> Read pinout in while loop
20:22:16.895 -> Read pinout in while loop
20:22:16.895 -> Read pinout in while loop
20:22:16.931 -> Read pinout in while loop
20:22:16.967 -> Read pinout in while loop
20:22:17.003 -> Read pinout in while loop
20:22:17.003 -> Read pinout in while loop
20:22:17.039 -> Read pinout in while loop
20:22:17.075 -> Read pinout in while loop
20:22:17.109 -> Read pinout in while loop
20:22:17.145 -> Read pinout in while loop
20:22:17.145 -> Read pinout in while loop
20:22:17.181 -> Read pinout in while loop
20:22:17.215 -> Read pinout in while loop
20:22:17.251 -> Read pinout in while loop
20:22:17.287 -> Read pinout in while loop
20:22:17.287 -> Read pinout in while loop
20:22:17.323 -> Read pinout in while loop
20:22:17.359 -> Read pinout in while loop
20:22:17.395 -> Read pinout in while loop
20:22:17.395 -> Read pinout in while loop
20:22:17.431 -> Read pinout in while loop
20:22:17.467 -> Read pinout in while loop
20:22:17.503 -> Read pinout in while loop
20:22:17.539 -> Read pinout in while loop
20:22:17.539 -> Read pinout in while loop
20:22:17.575 -> Read pinout in while loop
20:22:17.609 -> Read pinout in while loop
20:22:17.645 -> Read pinout in while loop
20:22:17.681 -> Read pinout in while loop
20:22:17.681 -> Read pinout in while loop
20:22:17.715 -> Read pinout in while loop
20:22:17.751 -> Read pinout in while loop
20:22:17.787 -> Read pinout in while loop
20:22:17.787 -> Read pinout in while loop
20:22:17.823 -> Read pinout in while loop
20:22:17.859 -> Read pinout in while loop
20:22:17.893 -> Read pinout in while loop
20:22:17.929 -> Read pinout in while loop
20:22:17.929 -> Read pinout in while loop
20:22:17.965 -> Read pinout in while loop
20:22:18.000 -> Read pinout in while loop
20:22:18.036 -> Read pinout in while loop
20:22:18.072 -> Read pinout in while loop
20:22:18.072 -> Read pinout in while loop
20:22:18.106 -> Read pinout in while loop
20:22:18.142 -> Read pinout in while loop
20:22:18.178 -> Read pinout in while loop
20:22:18.214 -> Read pinout in while loop
20:22:18.214 -> Read pinout in while loop
20:22:18.250 -> Read pinout in while loop
20:22:18.286 -> Read pinout in while loop
20:22:18.322 -> Read pinout in while loop
20:22:18.322 -> Read pinout in while loop
20:22:18.358 -> Read pinout in while loop
20:22:18.391 -> Read pinout in while loop
20:22:18.427 -> Read pinout in while loop
20:22:18.463 -> Read pinout in while loop
20:22:18.463 -> Read pinout in while loop
20:22:18.499 -> Read pinout in while loop
20:22:18.535 -> Read pinout in while loop
20:22:18.570 -> Read pinout in while loop
20:22:18.606 -> Read pinout in while loop
20:22:18.606 -> Read pinout in while loop
20:22:18.642 -> Read pinout in while loop
20:22:18.677 -> Read pinout in while loop
20:22:18.713 -> Read pinout in while loop
20:22:18.749 -> Read pinout in while loop
20:22:18.749 -> Read pinout in while loop
20:22:18.785 -> Low State: No Motion detected!
20:22:18.821 -> Low State: No Motion detected!
20:22:18.857 -> High State: Motion detected!
20:22:18.893 -> Read pinout in while loop
20:22:18.929 -> High State: Still motion detected, no turning off!
20:22:18.965 -> Read pinout in while loop
20:22:19.001 -> High State: Still motion detected, no turning off!
20:22:19.037 -> Read pinout in while loop
20:22:19.073 -> High State: Still motion detected, no turning off!
20:22:19.145 -> Read pinout in while loop
20:22:19.145 -> High State: Still motion detected, no turning off!
20:22:19.217 -> Read pinout in while loop
20:22:19.253 -> High State: Still motion detected, no turning off!
20:22:19.289 -> Read pinout in while loop
20:22:19.323 -> High State: Still motion detected, no turning off!
20:22:19.395 -> Read pinout in while loop
20:22:19.395 -> High State: Still motion detected, no turning off!
20:22:19.467 -> Read pinout in while loop
20:22:19.503 -> High State: Still motion detected, no turning off!
20:22:19.541 -> Read pinout in while loop
20:22:19.577 -> High State: Still motion detected, no turning off!
20:22:19.613 -> Read pinout in while loop
20:22:19.649 -> High State: Still motion detected, no turning off!
20:22:19.721 -> Read pinout in while loop
20:22:19.721 -> High State: Still motion detected, no turning off!
20:22:19.793 -> Read pinout in while loop
20:22:19.829 -> High State: Still motion detected, no turning off!
20:22:19.865 -> Read pinout in while loop
20:22:19.901 -> High State: Still motion detected, no turning off!
20:22:19.973 -> Read pinout in while loop
20:22:19.973 -> Read pinout in while loop
20:22:20.009 -> Read pinout in while loop
20:22:20.045 -> Read pinout in while loop
20:22:20.081 -> Read pinout in while loop
20:22:20.081 -> Read pinout in while loop
20:22:20.117 -> Read pinout in while loop
20:22:20.153 -> Read pinout in while loop
20:22:20.189 -> Read pinout in while loop
20:22:20.225 -> Read pinout in while loop
20:22:20.225 -> Read pinout in while loop
20:22:20.261 -> Read pinout in while loop
20:22:20.297 -> Read pinout in while loop
20:22:20.333 -> Read pinout in while loop
20:22:20.333 -> Read pinout in while loop
20:22:20.369 -> Read pinout in while loop
20:22:20.405 -> Read pinout in while loop
20:22:20.441 -> Read pinout in while loop
20:22:20.477 -> Read pinout in while loop
20:22:20.477 -> Read pinout in while loop
20:22:20.510 -> Read pinout in while loop
20:22:20.546 -> Read pinout in while loop
20:22:20.582 -> Read pinout in while loop
20:22:20.618 -> Read pinout in while loop
20:22:20.618 -> Read pinout in while loop
20:22:20.654 -> Read pinout in while loop
20:22:20.690 -> Read pinout in while loop
20:22:20.726 -> Read pinout in while loop
20:22:20.762 -> Read pinout in while loop
20:22:20.762 -> Read pinout in while loop
20:22:20.798 -> Read pinout in while loop
20:22:20.834 -> Read pinout in while loop
20:22:20.870 -> Read pinout in while loop
20:22:20.870 -> Read pinout in while loop
20:22:20.906 -> Read pinout in while loop
20:22:20.942 -> Read pinout in while loop
20:22:20.978 -> Read pinout in while loop
20:22:21.014 -> Read pinout in while loop
20:22:21.014 -> Read pinout in while loop
20:22:21.050 -> Read pinout in while loop
20:22:21.086 -> Read pinout in while loop
20:22:21.122 -> Read pinout in while loop
20:22:21.122 -> Read pinout in while loop
20:22:21.159 -> Read pinout in while loop
20:22:21.195 -> Read pinout in while loop
20:22:21.231 -> Read pinout in while loop
20:22:21.267 -> Read pinout in while loop
20:22:21.267 -> Read pinout in while loop
20:22:21.303 -> Read pinout in while loop
20:22:21.339 -> Read pinout in while loop
20:22:21.375 -> Read pinout in while loop
20:22:21.375 -> Read pinout in while loop
20:22:21.411 -> Read pinout in while loop
20:22:21.446 -> Read pinout in while loop
20:22:21.482 -> Read pinout in while loop
20:22:21.518 -> Read pinout in while loop
20:22:21.518 -> Read pinout in while loop
20:22:21.554 -> Read pinout in while loop
20:22:21.590 -> Read pinout in while loop
20:22:21.627 -> Read pinout in while loop
20:22:21.627 -> Read pinout in while loop
20:22:21.662 -> Read pinout in while loop
20:22:21.699 -> Read pinout in while loop
20:22:21.734 -> Read pinout in while loop
20:22:21.770 -> Read pinout in while loop
20:22:21.770 -> Read pinout in while loop
20:22:21.804 -> Read pinout in while loop
20:22:21.840 -> Read pinout in while loop
20:22:21.876 -> Read pinout in while loop
20:22:21.912 -> Read pinout in while loop
20:22:21.912 -> Read pinout in while loop
20:22:21.948 -> Read pinout in while loop
20:22:21.984 -> Read pinout in while loop
20:22:22.020 -> Read pinout in while loop
20:22:22.020 -> Read pinout in while loop
20:22:22.057 -> Read pinout in while loop
20:22:22.092 -> Read pinout in while loop
20:22:22.128 -> Read pinout in while loop
20:22:22.164 -> Read pinout in while loop
20:22:22.164 -> Read pinout in while loop
20:22:22.202 -> Read pinout in while loop
20:22:22.238 -> Read pinout in while loop
20:22:22.274 -> Read pinout in while loop
20:22:22.274 -> Read pinout in while loop
20:22:22.310 -> Read pinout in while loop
20:22:22.346 -> Read pinout in while loop
20:22:22.382 -> Read pinout in while loop
20:22:22.418 -> Read pinout in while loop
20:22:22.418 -> Read pinout in while loop
20:22:22.454 -> Read pinout in while loop
20:22:22.491 -> Read pinout in while loop
20:22:22.524 -> Read pinout in while loop
20:22:22.560 -> Read pinout in while loop
20:22:22.560 -> Read pinout in while loop
20:22:22.597 -> Read pinout in while loop
20:22:22.632 -> Read pinout in while loop
20:22:22.668 -> Read pinout in while loop
20:22:22.668 -> Read pinout in while loop
20:22:22.704 -> Read pinout in while loop
20:22:22.738 -> Read pinout in while loop
20:22:22.774 -> Read pinout in while loop
20:22:22.810 -> Read pinout in while loop
20:22:22.810 -> Read pinout in while loop
20:22:22.847 -> Read pinout in while loop
20:22:22.883 -> Read pinout in while loop
20:22:22.919 -> Read pinout in while loop
20:22:22.956 -> Read pinout in while loop
20:22:22.956 -> Read pinout in while loop
20:22:22.991 -> Read pinout in while loop
20:22:23.027 -> Read pinout in while loop
20:22:23.063 -> Read pinout in while loop
20:22:23.063 -> Read pinout in while loop
20:22:23.099 -> Read pinout in while loop
20:22:23.136 -> Read pinout in while loop
20:22:23.171 -> Read pinout in while loop
20:22:23.207 -> Read pinout in while loop
20:22:23.207 -> Read pinout in while loop
20:22:23.243 -> Read pinout in while loop
20:22:23.280 -> Read pinout in while loop
20:22:23.315 -> Read pinout in while loop
20:22:23.315 -> Read pinout in while loop
20:22:23.352 -> Read pinout in while loop
20:22:23.388 -> Read pinout in while loop
20:22:23.424 -> Read pinout in while loop
20:22:23.460 -> Read pinout in while loop
20:22:23.460 -> Read pinout in while loop
20:22:23.496 -> Read pinout in while loop
20:22:23.532 -> Read pinout in while loop
20:22:23.568 -> Read pinout in while loop
20:22:23.568 -> Read pinout in while loop
20:22:23.604 -> Read pinout in while loop
20:22:23.640 -> Read pinout in while loop
20:22:23.676 -> Read pinout in while loop
20:22:23.712 -> Read pinout in while loop
20:22:23.712 -> Read pinout in while loop
20:22:23.748 -> Read pinout in while loop
20:22:23.784 -> Read pinout in while loop
20:22:23.820 -> Read pinout in while loop
20:22:23.820 -> Read pinout in while loop
20:22:23.854 -> Read pinout in while loop
20:22:23.890 -> Read pinout in while loop
20:22:23.926 -> Read pinout in while loop
20:22:23.962 -> Read pinout in while loop
20:22:23.962 -> Read pinout in while loop
20:22:23.998 -> Read pinout in while loop
20:22:24.034 -> Read pinout in while loop
20:22:24.070 -> Read pinout in while loop
20:22:24.106 -> Read pinout in while loop
20:22:24.106 -> Read pinout in while loop
20:22:24.142 -> Read pinout in while loop
20:22:24.178 -> Read pinout in while loop
20:22:24.214 -> Read pinout in while loop
20:22:24.250 -> Read pinout in while loop
20:22:24.250 -> Read pinout in while loop
20:22:24.286 -> Read pinout in while loop
20:22:24.322 -> Read pinout in while loop
20:22:24.358 -> Read pinout in while loop
20:22:24.358 -> Read pinout in while loop
20:22:24.394 -> Read pinout in while loop
20:22:24.430 -> Read pinout in while loop
20:22:24.466 -> Read pinout in while loop
20:22:24.502 -> Read pinout in while loop
20:22:24.502 -> Read pinout in while loop
20:22:24.538 -> Read pinout in while loop
20:22:24.574 -> Read pinout in while loop
20:22:24.610 -> Read pinout in while loop
20:22:24.610 -> Read pinout in while loop
20:22:24.646 -> Read pinout in while loop
20:22:24.682 -> Read pinout in while loop
20:22:24.717 -> Read pinout in while loop
20:22:24.754 -> Read pinout in while loop
20:22:24.754 -> Read pinout in while loop
20:22:24.789 -> Read pinout in while loop
20:22:24.826 -> Read pinout in while loop
20:22:24.861 -> Read pinout in while loop
20:22:24.861 -> Read pinout in while loop
20:22:24.897 -> Read pinout in while loop
20:22:24.931 -> Read pinout in while loop
20:22:24.967 -> Read pinout in while loop
20:22:25.003 -> Read pinout in while loop
20:22:25.003 -> Read pinout in while loop
20:22:25.039 -> Read pinout in while loop
20:22:25.075 -> Read pinout in while loop
20:22:25.111 -> Read pinout in while loop
20:22:25.147 -> Read pinout in while loop
20:22:25.147 -> Read pinout in while loop
20:22:25.183 -> Read pinout in while loop
20:22:25.219 -> Read pinout in while loop
20:22:25.255 -> Read pinout in while loop
20:22:25.255 -> Read pinout in while loop
20:22:25.291 -> Read pinout in while loop
20:22:25.324 -> Read pinout in while loop
20:22:25.360 -> Read pinout in while loop
20:22:25.396 -> Read pinout in while loop
20:22:25.396 -> Read pinout in while loop
20:22:25.432 -> Read pinout in while loop
20:22:25.468 -> Read pinout in while loop
20:22:25.504 -> Read pinout in while loop
20:22:25.540 -> Read pinout in while loop
20:22:25.540 -> Read pinout in while loop
20:22:25.576 -> Read pinout in while loop
20:22:25.612 -> Read pinout in while loop
20:22:25.648 -> Read pinout in while loop
20:22:25.648 -> Read pinout in while loop
20:22:25.684 -> Read pinout in while loop
20:22:25.720 -> Read pinout in while loop
20:22:25.756 -> Read pinout in while loop
20:22:25.792 -> Read pinout in while loop
20:22:25.792 -> Read pinout in while loop
20:22:25.828 -> Read pinout in while loop
20:22:25.864 -> Read pinout in while loop
20:22:25.900 -> Read pinout in while loop
20:22:25.936 -> Read pinout in while loop
20:22:25.936 -> Read pinout in while loop
20:22:25.972 -> Read pinout in while loop
20:22:26.008 -> Read pinout in while loop
20:22:26.044 -> Read pinout in while loop
20:22:26.044 -> Read pinout in while loop
20:22:26.081 -> Read pinout in while loop
20:22:26.117 -> Read pinout in while loop
20:22:26.153 -> Read pinout in while loop
20:22:26.189 -> Read pinout in while loop
20:22:26.189 -> Read pinout in while loop
20:22:26.225 -> Read pinout in while loop
20:22:26.261 -> Read pinout in while loop
20:22:26.295 -> Read pinout in while loop
20:22:26.331 -> Read pinout in while loop
20:22:26.331 -> Read pinout in while loop
20:22:26.367 -> Read pinout in while loop
20:22:26.403 -> Read pinout in while loop
20:22:26.439 -> Read pinout in while loop
20:22:26.439 -> Read pinout in while loop
20:22:26.474 -> Read pinout in while loop
20:22:26.511 -> Read pinout in while loop
20:22:26.546 -> Read pinout in while loop
20:22:26.583 -> Read pinout in while loop
20:22:26.583 -> Read pinout in while loop
20:22:26.616 -> Read pinout in while loop
20:22:26.650 -> Read pinout in while loop
20:22:26.684 -> Read pinout in while loop
20:22:26.719 -> Read pinout in while loop
20:22:26.719 -> Read pinout in while loop
20:22:26.754 -> Read pinout in while loop
20:22:26.788 -> Read pinout in while loop
20:22:26.822 -> Read pinout in while loop
20:22:26.856 -> Read pinout in while loop
20:22:26.890 -> Read pinout in while loop
20:22:26.890 -> Read pinout in while loop
20:22:26.924 -> High State: Still motion detected, no turning off!
20:22:26.993 -> Read pinout in while loop
20:22:27.026 -> High State: Still motion detected, no turning off!
20:22:27.060 -> Read pinout in while loop
20:22:27.095 -> High State: Still motion detected, no turning off!
20:22:27.163 -> Read pinout in while loop
20:22:27.163 -> High State: Still motion detected, no turning off!
20:22:27.232 -> Read pinout in while loop
20:22:27.267 -> High State: Still motion detected, no turning off!
20:22:27.302 -> Read pinout in while loop
20:22:27.337 -> High State: Still motion detected, no turning off!
20:22:27.405 -> Read pinout in while loop
20:22:27.438 -> High State: Still motion detected, no turning off!
20:22:27.472 -> Read pinout in while loop
20:22:27.506 -> High State: Still motion detected, no turning off!
20:22:27.574 -> Read pinout in while loop
20:22:27.574 -> High State: Still motion detected, no turning off!
20:22:27.643 -> Read pinout in while loop
20:22:27.677 -> High State: Still motion detected, no turning off!
20:22:27.710 -> Read pinout in while loop
20:22:27.743 -> High State: Still motion detected, no turning off!
20:22:27.812 -> Read pinout in while loop
20:22:27.845 -> High State: Still motion detected, no turning off!
20:22:27.878 -> Read pinout in while loop
20:22:27.911 -> High State: Still motion detected, no turning off!
20:22:27.978 -> Read pinout in while loop
20:22:28.012 -> Read pinout in while loop
20:22:28.012 -> Read pinout in while loop
20:22:28.045 -> Read pinout in while loop
20:22:28.079 -> Read pinout in while loop
20:22:28.114 -> Read pinout in while loop
20:22:28.148 -> Read pinout in while loop
20:22:28.182 -> Read pinout in while loop
20:22:28.182 -> Read pinout in while loop
20:22:28.216 -> Read pinout in while loop
20:22:28.251 -> Read pinout in while loop
20:22:28.285 -> Read pinout in while loop
20:22:28.318 -> Read pinout in while loop
20:22:28.351 -> Read pinout in while loop
20:22:28.351 -> Read pinout in while loop
20:22:28.385 -> Read pinout in while loop
20:22:28.419 -> Read pinout in while loop
20:22:28.452 -> Read pinout in while loop
20:22:28.487 -> Read pinout in while loop
20:22:28.520 -> Read pinout in while loop
20:22:28.520 -> Read pinout in while loop
20:22:28.553 -> Read pinout in while loop
20:22:28.588 -> Read pinout in while loop
20:22:28.621 -> Read pinout in while loop
20:22:28.656 -> Read pinout in while loop
20:22:28.689 -> Read pinout in while loop
20:22:28.689 -> Read pinout in while loop
20:22:28.723 -> Read pinout in while loop
20:22:28.756 -> Read pinout in while loop
20:22:28.791 -> Read pinout in while loop
20:22:28.824 -> Read pinout in while loop
20:22:28.858 -> Read pinout in while loop
20:22:28.858 -> Read pinout in while loop
20:22:28.892 -> Read pinout in while loop
20:22:28.926 -> Read pinout in while loop
20:22:28.960 -> Read pinout in while loop
20:22:28.995 -> Read pinout in while loop
20:22:29.028 -> Read pinout in while loop
20:22:29.028 -> Read pinout in while loop
20:22:29.061 -> Read pinout in while loop
20:22:29.095 -> Read pinout in while loop
20:22:29.130 -> Read pinout in while loop
20:22:29.163 -> Read pinout in while loop
20:22:29.197 -> Read pinout in while loop
20:22:29.197 -> Read pinout in while loop
20:22:29.232 -> Read pinout in while loop
20:22:29.267 -> Read pinout in while loop
20:22:29.302 -> Read pinout in while loop
20:22:29.336 -> Read pinout in while loop
20:22:29.336 -> Read pinout in while loop
20:22:29.370 -> Read pinout in while loop
20:22:29.403 -> Read pinout in while loop
20:22:29.438 -> Read pinout in while loop
20:22:29.473 -> Read pinout in while loop
20:22:29.506 -> Read pinout in while loop
20:22:29.506 -> Read pinout in while loop
20:22:29.540 -> Read pinout in while loop
20:22:29.574 -> Read pinout in while loop
20:22:29.607 -> Read pinout in while loop
20:22:29.642 -> Read pinout in while loop
20:22:29.676 -> Read pinout in while loop
20:22:29.676 -> Read pinout in while loop
20:22:29.709 -> Read pinout in while loop
20:22:29.743 -> Read pinout in while loop
20:22:29.776 -> Read pinout in while loop
20:22:29.809 -> Read pinout in while loop
20:22:29.842 -> Read pinout in while loop
20:22:29.842 -> Read pinout in while loop
20:22:29.876 -> Read pinout in while loop
20:22:29.910 -> Read pinout in while loop
20:22:29.945 -> Read pinout in while loop
20:22:29.978 -> Read pinout in while loop
20:22:30.011 -> Read pinout in while loop
20:22:30.011 -> Read pinout in while loop
20:22:30.046 -> Read pinout in while loop
20:22:30.081 -> Read pinout in while loop
20:22:30.115 -> Read pinout in while loop
20:22:30.149 -> Read pinout in while loop
20:22:30.183 -> Read pinout in while loop
20:22:30.183 -> Read pinout in while loop
20:22:30.218 -> Read pinout in while loop
20:22:30.252 -> Read pinout in while loop
20:22:30.285 -> Read pinout in while loop
20:22:30.318 -> Read pinout in while loop
20:22:30.318 -> Read pinout in while loop
20:22:30.352 -> Read pinout in while loop
20:22:30.385 -> Read pinout in while loop
20:22:30.419 -> Read pinout in while loop
20:22:30.452 -> Read pinout in while loop
20:22:30.487 -> Read pinout in while loop
20:22:30.487 -> Read pinout in while loop
20:22:30.520 -> Read pinout in while loop
20:22:30.555 -> Read pinout in while loop
20:22:30.590 -> Read pinout in while loop
20:22:30.623 -> Read pinout in while loop
20:22:30.658 -> Read pinout in while loop
20:22:30.658 -> Read pinout in while loop
20:22:30.692 -> Read pinout in while loop
20:22:30.727 -> Read pinout in while loop
20:22:30.761 -> Read pinout in while loop
20:22:30.794 -> Read pinout in while loop
20:22:30.829 -> Read pinout in while loop
20:22:30.829 -> Read pinout in while loop
20:22:30.863 -> Read pinout in while loop
20:22:30.896 -> Read pinout in while loop
20:22:30.930 -> Read pinout in while loop
20:22:30.964 -> Read pinout in while loop
20:22:30.997 -> Read pinout in while loop
20:22:30.997 -> Read pinout in while loop
20:22:31.032 -> Read pinout in while loop
20:22:31.066 -> Read pinout in while loop
20:22:31.100 -> Read pinout in while loop
20:22:31.134 -> Read pinout in while loop
20:22:31.134 -> Read pinout in while loop
20:22:31.168 -> Read pinout in while loop
20:22:31.202 -> Read pinout in while loop
20:22:31.237 -> Read pinout in while loop
20:22:31.271 -> Read pinout in while loop
20:22:31.304 -> Read pinout in while loop
20:22:31.304 -> Read pinout in while loop
20:22:31.338 -> Read pinout in while loop
20:22:31.372 -> Read pinout in while loop
20:22:31.407 -> Read pinout in while loop
20:22:31.440 -> Read pinout in while loop
20:22:31.475 -> Read pinout in while loop
20:22:31.475 -> Read pinout in while loop
20:22:31.509 -> Read pinout in while loop
20:22:31.543 -> Read pinout in while loop
20:22:31.578 -> Read pinout in while loop
20:22:31.613 -> Read pinout in while loop
20:22:31.613 -> Read pinout in while loop
20:22:31.647 -> Read pinout in while loop
20:22:31.681 -> Read pinout in while loop
20:22:31.716 -> Read pinout in while loop
20:22:31.750 -> Read pinout in while loop
20:22:31.783 -> Read pinout in while loop
20:22:31.783 -> Read pinout in while loop
20:22:31.817 -> Read pinout in while loop
20:22:31.851 -> Read pinout in while loop
20:22:31.885 -> Read pinout in while loop
20:22:31.918 -> Read pinout in while loop
20:22:31.952 -> Read pinout in while loop
20:22:31.952 -> Read pinout in while loop
20:22:31.986 -> Read pinout in while loop
20:22:32.020 -> Read pinout in while loop
20:22:32.055 -> Read pinout in while loop
20:22:32.089 -> Read pinout in while loop
20:22:32.124 -> Read pinout in while loop
20:22:32.124 -> Read pinout in while loop
20:22:32.157 -> Read pinout in while loop
20:22:32.191 -> Read pinout in while loop
20:22:32.226 -> Read pinout in while loop
20:22:32.259 -> Read pinout in while loop
20:22:32.259 -> Read pinout in while loop
20:22:32.293 -> Read pinout in while loop
20:22:32.326 -> Read pinout in while loop
20:22:32.360 -> Read pinout in while loop
20:22:32.393 -> Read pinout in while loop
20:22:32.427 -> Read pinout in while loop
20:22:32.461 -> Read pinout in while loop
20:22:32.461 -> Read pinout in while loop
20:22:32.495 -> Read pinout in while loop
20:22:32.530 -> Read pinout in while loop
20:22:32.564 -> Read pinout in while loop
20:22:32.597 -> Read pinout in while loop
20:22:32.597 -> Read pinout in while loop
20:22:32.632 -> Read pinout in while loop
20:22:32.665 -> Read pinout in while loop
20:22:32.699 -> Read pinout in while loop
20:22:32.733 -> Read pinout in while loop
20:22:32.767 -> Read pinout in while loop
20:22:32.767 -> Read pinout in while loop
20:22:32.801 -> Read pinout in while loop
20:22:32.836 -> Read pinout in while loop
20:22:32.870 -> Read pinout in while loop
20:22:32.904 -> Read pinout in while loop
20:22:32.938 -> Read pinout in while loop
20:22:32.938 -> Read pinout in while loop
20:22:32.971 -> Read pinout in while loop
20:22:33.005 -> Read pinout in while loop
20:22:33.039 -> Read pinout in while loop
20:22:33.073 -> Read pinout in while loop
20:22:33.108 -> Read pinout in while loop
20:22:33.108 -> Read pinout in while loop
20:22:33.141 -> Read pinout in while loop
20:22:33.175 -> Read pinout in while loop
20:22:33.210 -> Read pinout in while loop
20:22:33.243 -> Read pinout in while loop
20:22:33.277 -> Read pinout in while loop
20:22:33.277 -> Read pinout in while loop
20:22:33.310 -> Read pinout in while loop
20:22:33.343 -> Read pinout in while loop
20:22:33.377 -> Read pinout in while loop
20:22:33.412 -> Read pinout in while loop
20:22:33.412 -> Read pinout in while loop
20:22:33.445 -> Read pinout in while loop
20:22:33.479 -> Read pinout in while loop
20:22:33.512 -> Read pinout in while loop
20:22:33.546 -> Read pinout in while loop
20:22:33.580 -> Read pinout in while loop
20:22:33.614 -> Read pinout in while loop
20:22:33.614 -> Read pinout in while loop
20:22:33.649 -> Read pinout in while loop
20:22:33.684 -> Read pinout in while loop
20:22:33.719 -> Read pinout in while loop
20:22:33.752 -> Read pinout in while loop
20:22:33.752 -> Read pinout in while loop
20:22:33.785 -> Read pinout in while loop
20:22:33.819 -> Read pinout in while loop
20:22:33.853 -> Read pinout in while loop
20:22:33.887 -> Read pinout in while loop
20:22:33.921 -> Read pinout in while loop
20:22:33.921 -> Read pinout in while loop
20:22:33.955 -> Read pinout in while loop
20:22:33.988 -> Read pinout in while loop
20:22:34.021 -> Read pinout in while loop
20:22:34.055 -> Read pinout in while loop
20:22:34.089 -> Read pinout in while loop
20:22:34.089 -> Read pinout in while loop
20:22:34.124 -> Read pinout in while loop
20:22:34.159 -> Read pinout in while loop
20:22:34.194 -> Read pinout in while loop
20:22:34.229 -> Read pinout in while loop
20:22:34.229 -> Read pinout in while loop
20:22:34.262 -> Read pinout in while loop
20:22:34.295 -> Read pinout in while loop
20:22:34.329 -> Read pinout in while loop
20:22:34.364 -> Read pinout in while loop
20:22:34.397 -> Read pinout in while loop
20:22:34.397 -> Read pinout in while loop
20:22:34.432 -> Read pinout in while loop
20:22:34.467 -> Read pinout in while loop
20:22:34.500 -> Read pinout in while loop
20:22:34.534 -> Read pinout in while loop
20:22:34.568 -> Read pinout in while loop
20:22:34.568 -> Read pinout in while loop
20:22:34.603 -> Read pinout in while loop
20:22:34.638 -> Read pinout in while loop
20:22:34.671 -> Read pinout in while loop
20:22:34.705 -> Read pinout in while loop
20:22:34.738 -> Read pinout in while loop
20:22:34.738 -> Read pinout in while loop
20:22:34.772 -> Read pinout in while loop
20:22:34.806 -> Read pinout in while loop
20:22:34.840 -> Read pinout in while loop
20:22:34.873 -> Read pinout in while loop
20:22:34.906 -> Read pinout in while loop
20:22:34.906 -> Read pinout in while loop
20:22:34.940 -> Read pinout in while loop
20:22:34.974 -> Read pinout in while loop
20:22:35.007 -> Read pinout in while loop
20:22:35.041 -> Read pinout in while loop
20:22:35.075 -> Read pinout in while loop
20:22:35.075 -> Read pinout in while loop
20:22:35.110 -> Read pinout in while loop
20:22:35.144 -> Read pinout in while loop
20:22:35.178 -> Read pinout in while loop
20:22:35.212 -> Read pinout in while loop
20:22:35.212 -> Read pinout in while loop
20:22:35.246 -> Read pinout in while loop
20:22:35.281 -> Read pinout in while loop
20:22:35.315 -> Read pinout in while loop
20:22:35.350 -> Read pinout in while loop
20:22:35.383 -> Read pinout in while loop
20:22:35.383 -> Read pinout in while loop
20:22:35.417 -> Read pinout in while loop
20:22:35.450 -> Read pinout in

What does that mean?

You do not want to send MQTT cht when no motion then take out the

and the no motions detected will not send MQTT publishes when the thingy is not detecting.

You're using millis wrong. You are risking a lockout at rollover time.

if (millis() - previousTime >= requiredPeriod)
{
//do something
}

Thanks for the replies. I actually removed the while statement and moved the jumper on the PIR from single to repeating mode to replace the "still detected" functionality. Untill now it works, no more new attempts to reconnect to the MQTT broker. Anyways, thanks to removing the while statement the esp stays connected now :slight_smile: