PaulS:
Can you connect if you don't plug the gas sensor in? If not, then the gas sensor is NOT the problem.38000 is a weird baud rate. Why do you think it is the correct rate to use?
Asked again at Gas sensor with ESP-01 can't connect to WIFI - #3 by aivarr - Programming Questions - Arduino Forum
Don't waste time here!
.