Commit b4277c3e authored by Thomas Pryor's avatar Thomas Pryor
Browse files

Create pneumaticPressure.ino

parent d3f870a1
void compressorPressureCheck()
{
int pressureValue = analogRead(COMPRESSOR_PIN) * 0.363;
//Serial.println(pressureValue);
if(pressureValue < 125) {
digitalWrite(COMPRESSOR_CONTROL, HIGH);
}
else if(pressureValue > 165) {
digitalWrite(COMPRESSOR_CONTROL, LOW);
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment