#include <Ultrasonic.h>
void setup() {
Serial.begin(9600);
Ultrasonic ultrasound1(7, 6);
// put your setup code here, to run once:
}
void loop() {
Ultrasonic ultrasound1(7, 6);
float distance = ultrasound1.read();
//Serial.println(distance);
delay(500);
if (distance > 10 && distance < 100) {
Serial.println("ахуена ");
}
else {
Serial.print("не ахуена ");
}
// put your main code here, to run repeatedly:
}