run script returns the PID of the sensor script so it can be killed