int microphone = 9;
int pee = 10;

void setup() {
  // put your setup code here, to run once:
pinMode(microphone, INPUT);
pinMode(pee, OUTPUT);
}

void loop() {
  // put your main code here, to run repeatedly:
int statusSensor = digitalRead(microphone);

 if (statusSensor == 1) {
  digitalWrite(pee, HIGH);
 }

 else {
   digitalWrite(pee, LOW);
 }
}