DHT11 Temp & Humidity Sensor icon DHT11 Temp & Humidity Sensor Read DHT11 temperature and humidity on Arduino (signal pin 4) using EZ-Genuino_DTH11_Uno firmware; exposes $Temp and $Humid variables. Try it →
 

Waitforequals

ADC.waitForEquals(port, value, [frequencyMs], [ezbIndex], [timeoutMS])

Parameters

port Analog port to read from.
value Value to wait for.
frequencyMs (optional) How often the port is checked in milliseconds.
ezbIndex (optional) Board index of the EZB to read from.
timeoutMS (optional) Number of milliseconds to wait before timeout.

Returns

The value read from the specified ADC port that is equal to value. Returns -1 if timeout

Description

Suspends execution of the script until the value read from the specified ADC port is equal to value. The value read from the ADC port ranges between 0 and 255. If frequencyMs is provided the port is checked every frequencyMs milliseconds. Otherwise the port is checked as often as possible.