Default how to receive hall sensor events

could anyone give me a hint how to receive hall sensor events? i could only find out where to get the current state
/sys/devices/virtual/sec/sec_key/hall_detect