# Decoding Smart Waste Bin Detector payload

**URL:** <https://www.thethingsnetwork.org/forum/t/decoding-smart-waste-bin-detector-payload/23291>\
**Category:** End Devices (Nodes)\
**Created:** [February 27, 2019, 4:28am UTC](https://www.thethingsnetwork.org/forum/t/decoding-smart-waste-bin-detector-payload/23291 "2019-02-27T04:28:14Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![arjanvanb](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/arjanvanb/32/46626_2.png) [@arjanvanb](https://www.thethingsnetwork.org/forum/u/arjanvanb)\
**Post date:** [February 27, 2019, 7:23am UTC](https://www.thethingsnetwork.org/forum/t/decoding-smart-waste-bin-detector-payload/23291/3 "2019-02-27T07:23:35Z")

</div>

To help future readers find the answer: what sensor is that, and can you share the manual? Also, someone recently asked for [Rubbish/Trash Can monitoring](https://www.thethingsnetwork.org/forum/t/rubbish-trash-can-monitoring/23193), so please share there?

And where did you find the hexadecimal encoded version? What you’re calling ASCII is not ASCII. The 4 bytes 00 00 10 34 are already shown in a hexadecimal representation. These are all the same:

- base 1, binary: 00000000 00000000 00010000 00110100
- base 8, [octal](https://en.wikipedia.org/wiki/Octal): 0 0 22 64
- base 10, decimal: 0 0 16 52
- base 16, hexadecimal: 00 00 10 34
- [Base64](https://en.wikipedia.org/wiki/Base64): AAAQNA==

Indeed, 30 30 30 30 31 30 33 34 is the hexadecimal representation of _the ASCII characters_ 0, 0, 0, 0, 1, 0, 3 and 4, but it makes no sense to do that.

See Wikipedia’s [Computer number format](https://en.wikipedia.org/wiki/Computer_number_format) and TTN’s [Working with Bytes](https://www.thethingsnetwork.org/docs/devices/bytes.html).

Also, the manual might explain why 4 bits are used for (apparently) boolean (on/off) values, where a single bit would suffice.

---

_[View the full topic](https://www.thethingsnetwork.org/forum/t/decoding-smart-waste-bin-detector-payload/23291)._
