I have problem with current sensor.
First I tried to read ADC from ACS712 20A (0-5V -> 0-1V voltage divider) and I got a lot of rubbish data.
Then I tried to read with ADC connected to GND - I got 0-12 reading.
Last I tried to read ADC connected to 3.3V (0-5V -> 0-1V votage divider) and I got 0-12 error.
Every time I did 1000 measurements with tmr.delay(1000) between every measurement.
I flash ESP with newest nodemcu from nodemcu-custom.
Is this problem with ESP or there is solution?
Thank you in advance.