Added sensorcloud

This commit is contained in:
2017-02-22 11:26:00 +01:00
parent cf8efa4e62
commit 8476cd8f35
+17
View File
@@ -0,0 +1,17 @@
int val;
int tempPin = 1;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
}
void loop() {
val = analogRead(tempPin);
float mv = ( val/1024.0)*5000;
float cel = mv/10;
Serial.print("SN TEMP ");
Serial.println(cel, 4);
delay(5000);
}