#include <Servo.h>

int outputValve = 0;
int sensorValve = 0;
Servo Valve_Digital9;

int outputAirflow = 0;
int sensorAirflow = 0;
Servo Airflow_Digital10;

void setup()
{
Serial.begin(9600);

pinMode (A0, INPUT);
Valve_Digital9.attach(9);

pinMode (A1, INPUT);
Airflow_Digital10.attach(10);
}

void loop()
{
sensorValve = analogRead(A0);
outputValve = map (sensorValve, 0, 1023, 70, 0);
Valve_Digital9.write(outputValve);
Serial.println(outputValve);

sensorAirflow = analogRead(A1);
outputAirflow = map (sensorAirflow, 0, 1023, 90, 0);
Airflow_Digital10.write(outputAirflow);
Serial.println(outputAirflow);

delay(15);
}