Dowry box looks for rising/falling edges instead of using a control sensor