

This module Voltage Sensor is based on a resistive divider principle design, make the interface terminal input voltage reduced 5 times.
If you have any questions on this product please feel free to contact us.
*Disclaimer: The images are merely illustrative.
int val11;
int val2;
void setup()
{
pinMode(LED1,OUTPUT);
Serial.begin(9600);
Serial.println("Emartee.Com");
Serial.println("Voltage: ");
Serial.print("V");
}
void loop()
{
float temp;
val11=analogRead(1);
temp=val11/4.092;
val11=(int)temp;//
val2=((val11%100)/10);
Serial.println(val2);
delay(1000);
}
Related products
This module Voltage Sensor is based on a resistive divider principle design, make the interface terminal input voltage reduced 5 times.