Add trashcan sensor C++ code