Well it´s too cold today for a walk to the garage, to make a photo, but below is the schematics from eLearn, could be helpful. Sensor that might give the message right after closing is probably 23.
Sensors are easy to spot - black plastic thingy with cables, mounted on top of the hydraulic cylinders. They're flat, with QRcode on them, fixed to the cylinder through plastic holder that can be shifted up and down.
Hall sensors are very reliable, this is the same type of sensor that is used in ABS, so malfunction is rather due to bad positioning or cabling. One other thing to keep in mind - function of the sensors is redundant, i.e.. one bad signal does not necesarily mean interruption of the process, especially on hood closure.
The least reliable sensors in our hood must be the one in the flap motor - it´s a potentiometer, so susceptible to wear and moisture. This is my next weekend project - disassembly of the flap motors