Opto-electronic sensors for hazardous areas