reimplemented tank and inventory sensor