Magnet or optical sensors? If its magnets try changing the reed switch, optical you need to change the black ets switch, usually only one goes bad but difficult to tellwhich when intermittent.