Turning an LED off thanks to a magnetic fields.

How to turn an LED off when in contact with a magnet and on when away, thanks to a reed sensor and a transistor.