Created
August 8, 2018 16:59
-
-
Save GSE-UP/bff57e73839919a73f2f815bdea7d388 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
float sensor = A0; | |
void setup() { | |
pinMode(sensor,INPUT); | |
Serial.begin(9600); | |
} | |
void loop() { | |
Serial.flush(); | |
float x=analogRead(sensor)*0.0048828125*16.67; | |
String y=""; | |
y+=x; | |
Serial.println(y); | |
delay(100); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment