Sensor system for explosion-prone areas