You may run into some issues when using the ESP8266's basic functions. We will list some of the common problems that many people face and some ways of troubleshooting them.
The analog pin of the ESP8266 can only measure voltages between 0V and 1V. If you have a sensor that outputs an analog signal that goes above that range, you will need to divide it. Otherwise, most of your readings from the analog pin will be 1023.
The best way of dividing the voltage is by using a voltage divider. It is easy to implement, since all you need is two resistors of the desired value and you are good to go.
Since most of the analog sensors you use with the ESP8266 board will output a signal of voltages between 0V and 3.3V, you will need a 1200 Ω resistor (R1) and a 470 Ω resistor (R2) to build a voltage divider.
You can read more on voltage dividers at this link: https://learn.sparkfun.com/tutorials/voltage-dividers.
There are some pins on the ESP8266 board that are used for reset functions and for boot mode functions. Therefore, ensure that:
CH_PD
(EN) is always pulled high because it will disable the ESP8266 when it is pulled lowThis is mostly caused by a power failure. Always ensure you are powering the ESP8266 board from a 3.3V power supply if there is no on-board voltage regulator, or from a 5V power supply if there is an on-board voltage regulator.
3.133.12.172