fixed light barrier threshold and detection