Vision Sensor VexCode Pro C++

That’s completely wrong, getSignature does not tell you anything about objects. You need to use takeSnapshot. See the examples included with VEXcode, or perhaps search the forum, here is an old example (written for VCS but should still work).