Stick the magnet on the woodwork and the sensor on the door. Depending upon the molding, you may need to use the spacer that comes with the sensor.