combined barrier sensors
fixed some syntax errors