wrote unpin in Statemachine and new script for scan detection

State does change correctly I think (from itemAtScanner to itemScanned)
didn’t get how to access the parent object of the barcode helper
object. means the Cornflakes Cube; so I can’t unpin it