ESP01 with Autoconnect tzapu not running the loop code

Im using the tzapu autoconnect library. Here is my code and Ive managed to successfully upload it to my ESP01S and it has connected to my ssid as instructed and I can see it on the dhcp list and on the network but its just sitting there, not doing what I BELIEVE the code should make it do.

The code in the CustomESPWiFiManager tab used to work before adding the Autoconnect tab and modifying the first tab by commenting out its setup() and renaming its loop() to loop2(). This way the Autoconnect tab's setup() runs and then its loop() runs and that loop() calls the CustomESPWiFiManager's loop2() which is the only function over there.

Here are both tab codes:

#include <ESP8266WiFi.h>
#include <dht.h>
#define DHT22_PIN 2//#define DHTPIN 2     // what pin we're connected to gpio02
//#define DHTTYPE DHT22   // DHT 22  (AM2302) was used
dht DHT;//(DHTPIN,DHTTYPE); //was DHT dht

const char* ssid     = "myssid";
const char* password = "mypwd";
const char* host = "santiapps.com";
unsigned long previousMillis = 0;        // will store last time was updated
const long interval = 180000; //3,600,000 = 3,600 seconds or 1 hr (180,000 = 180 secs or 
char tempString[20];
char humString[20];

//void setup() {
//  Serial.begin(115200);
//  delay(100);
// 
// 
//  Serial.println();
//  Serial.println();
//  Serial.print("Connecting to ");
//  Serial.println(ssid);
//  
//  WiFi.begin(ssid, password);
//  
//  while (WiFi.status() != WL_CONNECTED) {
//    delay(500);
//    Serial.print(".");
//  }
// 
//  Serial.println("");
//  Serial.println("WiFi connected");  
//  Serial.println("IP address: ");
//  Serial.println(WiFi.localIP());
//}
 
int value = 0;

void start_test () {
  int chk = DHT.read22(DHT22_PIN);
  float h = DHT.humidity;//dht.readHumidity();
  float t = DHT.temperature;//readTemperature();
  dtostrf(t, 4, 2, tempString);  //convert flat to char  
  dtostrf(h, 4, 2, humString);  //convert flat to char
}

void loop2() {
    unsigned long currentMillis = millis();
  if (currentMillis - previousMillis <= interval) {     
  } else { 
    previousMillis = currentMillis;
    start_test(); //sample
    delay(5000);
  ++value;
 
  Serial.print("connecting to ");
  Serial.println(host);
  
  WiFiClient client;
  const int httpPort = 80;
  if (!client.connect(host, httpPort)) {
    Serial.println("connection failed");
    return;
  }
  String url = String("/emoncms/input/post.json?apikey=mykey&node=fortnite&json={\"t\":") + tempString + ",\"h\":" + humString + "}";
  Serial.print("Requesting URL: ");
  Serial.println(url);
  client.print(String("GET ") + url + " HTTP/1.1\r\n" +
               "Host: " + host + "\r\n" + 
               "Connection: close\r\n\r\n");
  delay(500);  
  while(client.available()){
    String line = client.readStringUntil('\r');
    Serial.print(line);
  }  
  Serial.println();
  Serial.println("closing connection");
  }
  
}

and this is the Autoconnect tab:

#include <FS.h> //this needs to be first, or it all crashes and burns...
#include <ESP8266WiFi.h>
#include <DNSServer.h>
#include <ESP8266WebServer.h>
#include <WiFiManager.h>          // https://github.com/tzapu/WiFiManager
#include <ArduinoJson.h>          // https://github.com/bblanchon/ArduinoJson
WiFiServer server(80);
String header;
String outputState = "off";
char output[2] = "5";
char mytsapikey[20] = "";
bool shouldSaveConfig = false;
void saveConfigCallback () {
  Serial.println("Should save config");
  shouldSaveConfig = true;
}

void setup() {
  Serial.begin(115200);
  Serial.println("mounting FS...");
  if (SPIFFS.begin()) {
    Serial.println("mounted file system");
    if (SPIFFS.exists("/config.json")) {
      Serial.println("reading config file");
      File configFile = SPIFFS.open("/config.json", "r");
      if (configFile) {
        Serial.println("opened config file");
        size_t size = configFile.size();
        std::unique_ptr<char[]> buf(new char[size]);
        configFile.readBytes(buf.get(), size);
        DynamicJsonDocument doc(1024);
        auto error = deserializeJson(doc, buf.get());
        if (error) {
          Serial.print(F("deserializeJson() failed with code "));
          Serial.println(error.c_str());
          return;
        }
        serializeJson(doc, Serial);
          Serial.println("\nparsed json");
          strcpy(output, doc["output"]);
          strcpy(mytsapikey, doc["mytsapikey"]);
      }
    }
  } else {
    Serial.println("failed to mount FS");
  }
  WiFiManagerParameter custom_output("output", "output", output, 2);
  WiFiManagerParameter myts_apikey("APIkey", "Your key", mytsapikey, 2);
  WiFiManager wifiManager;
  wifiManager.setSaveConfigCallback(saveConfigCallback);
  wifiManager.addParameter(&custom_output);
  wifiManager.addParameter(&myts_apikey);
  wifiManager.autoConnect("AutoConnectAP");
  Serial.println("Connected.");
  strcpy(output, custom_output.getValue());
  strcpy(mytsapikey, myts_apikey.getValue());

  if (shouldSaveConfig) {
    Serial.println("saving config");
    DynamicJsonDocument doc(1024);
    doc["output"] = output;//**could eliminate
    doc["mytsapikey"] = mytsapikey;//***must add
    File configFile = SPIFFS.open("/config.json", "w");
    if (!configFile) {
      Serial.println("failed to open config file for writing");
    }
    serializeJson(doc, Serial);
    serializeJson(doc, configFile);
    configFile.close();
    //end save
  }
  pinMode(atoi(output), OUTPUT);
  digitalWrite(atoi(output), LOW);;
  server.begin();
}

void loop(){
  Serial.println("Entering loop 1");

  WiFiClient client = server.available();
  if (client) {
    Serial.println("New Client."); 
    String currentLine = "";
    while (client.connected()) {
      if (client.available()) {
        char c = client.read();
        Serial.write(c);  
        header += c;
        if (c == '\n') { 
          if (currentLine.length() == 0) {
            client.println("HTTP/1.1 200 OK");
            client.println("Content-type:text/html");
            client.println("Connection: close");
            client.println();
            if (header.indexOf("GET /output/on") >= 0) {
              Serial.println("Output on");
              outputState = "on";
              digitalWrite(atoi(output), HIGH);
            } else if (header.indexOf("GET /output/off") >= 0) {
              Serial.println("Output off");
              outputState = "off";
              digitalWrite(atoi(output), LOW);
            }
            client.println("<!DOCTYPE html><html>");
            client.println("<head><meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">");
            client.println("<link rel=\"icon\" href=\"data:,\">");
            client.println("<style>html { font-family: Helvetica; display: inline-block; margin: 0px auto; text-align: center;}");
            client.println(".button { background-color: #195B6A; border: none; color: white; padding: 16px 40px;");
            client.println("text-decoration: none; font-size: 30px; margin: 2px; cursor: pointer;}");
            client.println(".button2 {background-color: #77878A;}</style></head>");
            client.println("<body><h1>ESP8266 Web Server</h1>");
            client.println("<p>Output - State " + outputState + "</p>");
            if (outputState=="off") {
              client.println("<p><a href=\"/output/on\"><button class=\"button\">ON</button></a></p>");
            } else {
              client.println("<p><a href=\"/output/off\"><button class=\"button button2\">OFF</button></a></p>");
            }                  
            client.println("</body></html>");
            client.println();
            break;
          } else { // if you got a newline, then clear currentLine
            currentLine = "";
          }
        } else if (c != '\r') {  // if you got anything else but a carriage return character,
          currentLine += c;      // add it to the end of the currentLine
        }
      }
    }
   
    // Clear the header variable
    header = "";
    // Close the connection
    client.stop();
    Serial.println("Client disconnected.");
    Serial.println("");
  }

    Serial.println("Exiting loop 1");
    loop2();
}

The esp01s is currently connected via a programmer to my laptop usb and the serial monitor shows nothing. But the esp01s is on the network.

What could be the problem?

The esp01s is currently connected via a programmer to my laptop usb and the serial monitor shows nothing.

In that case the setup() isn't executed as the first line starts the serial interface and in the second line you print something there. If that never reaches your serial monitor you might have a hardware problem. Post a wiring diagram!

Do not cross post!