Fixes some runtimes from the infrared sensors, removed a lot of useless spawn()
Merge pull request #4839 from Aranclanos/infraredsensors

Fixes some runtimes from the infrared sensors.