programmable open/closed sense