Fix errors when some sensors are disabled