readProximity
Read distance from infrared sensor to object
Description
measures
the relative distance from the infrared sensor to a nearby object,
and returns it as a value from proximity
= readProximity(myirsensor
)0
to 100
(near
to far). The maximum range of the sensor is approximately 70 cm (27
inches).