ZMPT101B

hello,
I buy this sensor to read the voltage 0-250VAC,

https://www.amazon.it/Pink-Lizard-monofase-trasformatore-tensione/dp/B01HZQMAZE/ref=sr_1_fkmr0_1?ie=UTF8&qid=1478248473&sr=8-1-fkmr0&keywords=A01B+monofase+Ac

does anyone know if there is already sketch I can use?

does anyone know if there is already sketch I can use?

I can't read the specs because they are not in English.

If it puts-out a DC voltage that's proportional to the AC voltage, you can modify the [u]Read Analog Voltage Example[/u]. That is, you need to find the ratio between the voltage and the ADC reading... If 220VAC reads 1000, then a reading of 909 would be 200V.

I see a calibration/adjustment pot on that board so you'll probably have to calibrate the hardware and software (by measuring the AC voltage with a multimeter while monitoring the Arduino's ADC reading).

The Arduino can be damaged by voltages greater than +5V (or by negative voltages) so if that board is capable of putting-out more than 5V you may need an [u]over-voltage protection circuit[/u]

amrit94:
does anyone know if there is already sketch I can use?

Use modules from LC Technology, based on ZMPT101B.
Sketch Here.