I have just switched over to the new 3 port Ultrasonic Sensors and this script will no longer work. It's the one I used for the 4 port Ultrasonic Sensor. The script always Prints 2 no matter how close I get an object to the sensor.
$Center = GetPing(D11,D11)
$close = 40
if($Center < $close)
I have tried a 4 port sensor and it won't work either. Was there a change that I missed?