Gas sensor with ESP-01 can't connect to WIFI

Don't look at my first code, posted by mistake. So other code is good ? Only problems with ESP-01 ?