hi averyone this is my first script for the ping sensor.whit some help from RR and STEVE G more ideas may welcome. here the script and here pic for the servo