Color sensor still reading colors even if there is no object!


#1

Hello ,

I have problem with color sensor , i want to use it to detect 2 colors Green and Red , and then use robot arm to sort on 2 heaps .I used example with some conditions and print to log , but problem use robot arm to sort because messages log still spamming Green sometimes Red , when i give close to sensor Red object , Green log than changes to Red until i remove obejct than continue spamming Green again.
Is this sensor of such poor quality that it constantly detects color ?
I´m using dobot magician V2


#2

I have the same problem. If there is no object it’s reading green all the time