Hazardous area explosion proof linear position sensor