the usual alternative would be an accelerometer. See the following discussion:
Need a sensor recommendation for a metal door