Added code to detect rods at holder using sensor