Users Manual

CLASS 2
124
Operator
Out code will look like the example below. If the volume sensor value goes below a certain number, the motor
will turn on. If it goes over, the motor will turn off. Ths is the same as the volume sensor’s analog value going up
when we rotate the sensor counter clockwise.
Add the calculation block to the code. Add this block and combine it with the ‘value of analog0 sensor’
block.
To make this true, the operator is requiring the value of the volume sensor to be smaller than a
certain number. The rest of the code will look like the one below.
Next, we have to choose our threshold value.
Using the operator