TABLE OF CONTENTS


1.7.1 When Distance sensor senses the  object that comes near

Example 1.7.1

1.7.2 When Distance sensor senses the object that goes away from

Example 1.7.2

1.7.3 To wait for the selected action to happen with Distance sensor

Example 1.7.3

1.7.4 To get the Distance value in cm

Example 1.7.4

1.7.5 Set the Distance Value beyond of the sensors detected

Example 1.7.5


1.7.1 When Distance sensor senses the  object that comes near

Code inside this block will be executed whenever Distance Sensor senses the selected action

Example 1.7.1

Code inside this block will be executed whenever Distance Sensor senses the object which comes near it. Once the object is detected, shows the light On, Wait for few seconds and turns light off.


Before Execution


After Execution


1.7.2 When Distance sensor senses the object that goes away from

Code inside this block will be executed whenever Distance Sensor senses the selected action

Example 1.7.2


Code inside this block will be executed whenever Distance Sensor senses the object which is away from  it. Once the object is away then shows the light On, Wait for few seconds and turns light off.


Before Execution

After Execution



1.7.3 To wait for the selected action to happen with Distance sensor

Wait for the selected action to happen with Distance sensor

Example 1.7.3

When Motion Element is Double tapped ,Wait for the object to come near Distance sensor. Once the object is near then shows the light On, Wait for 5 seconds and turns light off.

Before Execution


After Execution


1.7.4 To get the Distance value in cm

Get the Distance value of the sensor in cm

Example 1.7.4

When Motion Element is Double tapped, Wait for the object to come near Distance sensor. Show the Distance value in cm on the Display line.

Before Execution

After Execution

1.7.5 Set the Distance Value beyond of the sensors detected


Set the threshold of nearness beyond which Distance is detected

Example 1.7.5

When Motion Element is Double tapped, Wait for the object to come near Distance sensor. Set the threshold of nearness beyond which Distance is detected.Show the Distance value in cm on the Display line. Also the shows the threshold.

Before Execution


After Execution