Trunk sensor on 2001 BMW 330Ci

where is the sensor in the trunk, theres only three wire going into the lock. Is it the bottom portion, or the top portion

Asked by for the 2001 BMW 330Ci
There is a micro-switch in the trunk latch that is used to determine if the trunk is open or not.