Automated Dust Collection

The analog inputs A2 and A3 are floating so may be reading high enough to be mistaken for a tool on condition, Ground the unused analog inputs and try your code.