Sammy888 wrote: I tried changing the voltage supply to the sensor to 3.3V from the Arduino and changed the code to 3.3/1024. The values now just fluctuate around 2.00 even though the sensor's not triggered. Is there other codes needed. Like does it has anything to do with the I2C concept (I dont really know what is it yet) or something about slave/master of the arduino board and ESP8266 board? Do advice, thanks.
What do you mean by "sensor's not triggered" ?
What sensor are you using ?
The ESP8266 raw ADC input is 1.0v, however, on ESP12 modules there are voltage step-down resistors which scale 3.3v -> 1.0v so voltage applied to A0 should be 0->3.3v for it to work correctly