You will find that the 1734IB8S works well for simple on-off sensing tasks.
For tight spaces, the Allen Bradley Stratix 5700 1783-BMS20CGN does not crowd other gear.