For my master thesis, 15 years ago, I was working with motes (the component of wireless sensor network) to create a new authentication algorithm and we use Contiki and TinyOS (https://github.com/tinyos/tinyos-main). I am glad to hear that Contiki it's still alive, it was more complex than TinyOS, but also more features rich.