void setup() {
// put your setup code here, to run once: Serial.begin(9600);
}
void loop() {
//reads value from Irradience Value int sensorValue = analogRead(A0);
//delay serial monitor delay(1000);
//Converts the read voltage from sensor to voltage float voltage = sensorValue * (5.0 / 1023.0) * 1000;
Serial.println(voltage* 0.25);
}
Authors
Contributing authors:
Created by tyamauchi on 2016/03/17 23:23.