Smallest Door/Window Sensor

Try these - they’re very slim and regularly available at a good price on mydigitaldiscount.com. If the layout of the cabinet allows, you might be able to mount the sensor under the top of the opening and put the smaller magnet component on the door; you could remove the magnet from its casing as well if you’re looking to go really small, but you’d still need a way to mount it.