Just tried to touch with my hand in there and managed to reach the sensor (I believe it is the sensor since it has a cable connected to it). Just tried to push it a bit in random directions (although it didn't move at all) and it is now working...
Maybe a bad contact.