0% found this document useful (0 votes)
33 views3 pages

ZMPT101B: Pin Config

This document provides instructions for connecting a voltage sensor to an Arduino board and reading the sensor value. It lists the sensor's pin connections of red to 5V, blank to ground, and green to analog pin A0. It includes an example Arduino code to initialize serial communication, read the analog pin, print the voltage value to the serial monitor.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views3 pages

ZMPT101B: Pin Config

This document provides instructions for connecting a voltage sensor to an Arduino board and reading the sensor value. It lists the sensor's pin connections of red to 5V, blank to ground, and green to analog pin A0. It includes an example Arduino code to initialize serial communication, read the analog pin, print the voltage value to the serial monitor.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

ZMPT101B

Pin Config

Wiring

Connection to arduino

Red: 5V

Blank: Ground
Green: A0

Codes:

Test code:

void setup(){

Serial.begin(9600);

void loop (){

int voltagesensorPin = 0;

float voltageValue = analogRead(voltagesensorPin);

Serial.print("Voltage = ");

Serial.print(voltageValue);

Serial.print("v");

}
DS3231
Pinconfig

Wiring:

Code:
Testcode:

You might also like