I have a autotransformer which gives 0- 250vac recently i bout a zmpt101b for measuring the voltage but here is some problem when i set the Autotransformer voltage above to 5v its give right value and then decrease from 5v its show 4.8 v mean below the 4.8 v its not measured properly and then i remove the connection of this sensor to autotransformer its show 0.0 V which is good but after connecting the wire from autransformer and turning on its show 4.8v any idea why this happen?
Am using this code
void setup() {
Serial.begin(115200);
// Change the sensitivity value based on value you got from the calibrate
// example.
voltageSensor.setSensitivity(SENSITIVITY);
}
void loop() {
// read the voltage and then print via Serial.
float voltage = voltageSensor.getRmsVoltage();
Serial.println(voltage);
I understand but why the module show 4.8 volt when i connected the autotransformer to supply and connected to zmpt101 when i increase voltage 5.5 above its give correct results but below 4.8 volt its show 4.8 why?