Skip to content

Instantly share code, notes, and snippets.

@GSE-UP
Created August 8, 2018 16:59
Show Gist options
  • Save GSE-UP/bff57e73839919a73f2f815bdea7d388 to your computer and use it in GitHub Desktop.
Save GSE-UP/bff57e73839919a73f2f815bdea7d388 to your computer and use it in GitHub Desktop.
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