I want to set a minimum pressure for a setup.
I want to do this with a potentiometer in steps of 15, from 15 to 900hPa.
I have a code that uses the potmeter's value, but it changes per 0,01 hPa and not per 15 hPa.
Can someone help?
This is the code for now. It's in dutch (druk=pressure):
int analogValue = analogRead(A0);
float minDruk = floatMap(analogValue, 0, 1023, 15, 900);
Serial.print ("Minimum druk ");