Light Flickers with Clicking Sound

I have a Whirlpool refrigerator (model: GD5SHAXNBOO). The light in the freezer still works fine, but the light in the fridge flickers in time with a clicking noise coming from the bottom right of the fridge. It only does this when the door opens (and the sensor is not depressed; we can stop the flickering/clicking by pushing in the sensor manually). Any ideas?

crwdns2934089:0crwdne2934089:0 crwdns2934093:0crwdne2934093:0

crwdns2934109:0crwdne2934109:0

crwdns2889612:0crwdne2889612:0 0
crwdns2934285:0crwdne2934285:0