int pressurePin = A0;
int pressureValue;
void setup() {
Serial.begin(9600);
}
void loop() {
// Read the analog value from the potentiometer
pressureValue = analogRead(pressurePin);
// Convert the analog value to a pressure reading (simplified example)
int pressurePsi = map(pressureValue, 0, 1023, 0, 100); // Map the analog value to a pressure range (0-100 psi)
// Send the simulated pressure reading to the serial monitor
Serial.print("Pressure (psi): ");
Serial.println(pressurePsi);
delay(1000); // Adjust the delay as needed
}