Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.