If a Wizard G3 sensor is being removed, push up on both sides to free the sensor from the mounting screws. If an IXIO-DT1 sensor is being removed, push up on right side and slide sensor to the right. 

 

Image
Remove faulty Occupancy Sensor
Image
Push Occupancy Sensor to the right