weatherbox:team_nova:irradiance_code

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:

tyamauchi

Created by tyamauchi on 2016/03/17 23:23.

  • weatherbox/team_nova/irradiance_code.txt
  • Last modified: 2021/09/19 21:59
  • (external edit)