We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Ultrasonic ultrasonic(9,8); // (Trig PIN,Echo PIN)
Ultrasonic ultrasonic(9,8,3000); // (Trig PIN,Echo PIN, Max.TimeOut in µsec )
TimeOut calculation
TimeOut = Max.Distance(cm) * 58
Example: 50 cm * 58 = 2900 µs
TimeOut = Max.Distance(inc) * 148
Example: 25 inc * 148 = 3700 µs