const int TTT = 11;
const int EEE = 10;
const int azoz = 6;
const int TTTT = 3;
const int EEEE = 4;
const int azozz = 8;
const int TTTT2 = 12;
const int EEEE2 = 9;
const int azoz2 = 7;
const int TTTT3 = 2;
const int EEEE3 = 1;
const int azoz3 = 14 ;
int buzzerpin = 50;
long DURAA;
int assss;
int azazaa;
long DURA;
int asss;
int azaza;
long DURAA2;
int assss2;
int azazaa2;
long DURAA3;
int assss3;
int azazaa3;
unsigned long AZAZAZAZ = millis();
void setup() {
pinMode(TTT, OUTPUT);
pinMode(buzzerpin, OUTPUT);
pinMode(EEE, INPUT);
pinMode(azoz, OUTPUT);
pinMode(TTTT, OUTPUT);
pinMode(EEEE, INPUT);
pinMode(azozz, OUTPUT);
pinMode(TTTT2, OUTPUT);
pinMode(EEEE2, INPUT);
pinMode(azoz2, OUTPUT);
Serial.begin( 9600);
}
void loop() {
unsigned long AZAZAZAZ = millis();
digitalWrite(buzzerpin, HIGH);
digitalWrite(buzzerpin, LOW);
// put your main code here, to run repeatedly:
digitalWrite(TTT, LOW);
delayMicroseconds(2);
digitalWrite(TTT, HIGH);
delayMicroseconds(10);
digitalWrite(TTT, LOW);
DURA = pulseIn(EEE, HIGH );
asss = DURA *0.034/2;
azaza = DURA;
azaza = asss;
if(asss <25){
digitalWrite(azoz, HIGH);
}
if(asss >120){
digitalWrite(azoz, LOW);
}
digitalWrite(TTTT, LOW);
delayMicroseconds(2);
digitalWrite(TTTT, HIGH);
delayMicroseconds(10);
digitalWrite(TTTT, LOW);
DURA = pulseIn(EEEE, HIGH );
asss = DURA *0.034/2;
azaza = DURA;
azaza = asss;
if(asss <25){
digitalWrite(azozz, HIGH);
}
if(asss >120){
digitalWrite(azozz, LOW);
}
digitalWrite(TTTT2, LOW);
delayMicroseconds(2);
digitalWrite(TTTT2, HIGH);
delayMicroseconds(10);
digitalWrite(TTTT2, LOW);
DURAA2 = pulseIn(EEEE2, HIGH );
assss2 = DURAA2 *0.034/2;
azazaa2 = DURAA2 ;
azazaa2=assss2 ;
if(assss2 <25){
digitalWrite(azoz2, HIGH);
}
if(assss2 >120){
digitalWrite(azoz2, LOW);
}
digitalWrite(buzzerpin, HIGH);
delay(1000);
digitalWrite(buzzerpin, LOW);
delay(1000);
}