What sensor for open/closed garage door?

I use an Ikea Parasoll magnetic sensor for open/closed state on my rolling shutter style garage door.

It is very unrealible due to the physical properties and movement of the gate, even with a stronger magnet.

Is there some other, more failsafe type of sensor I could use here?