Update
Updating database... Please wait.
Monday 25 December 2017 at 09:17
Those are optical switches. One is a transmitter and the other is a receiver. The ball blocks the beam of infrared light and that triggers the switch to close.
Source: http://pinside.com/pinball/forum/topic/guardians-of-the-galaxy-le-groots-mouth-not-opening#post-4141733