set IR-Sensor port to "SensorPort.In4"

updated ObjectDetected