The SensorDApp Tutorial

This is the first in a series of step by step tutorials on how to develop a decentralized application

The Teloscope
Published in
4 min readJan 10, 2019


The Teloscope team believes in the importance of producing DApps’ development tutorials in order to spur coding interest among the Telos community and foster new and amazing use cases.

Part 1 of

DApp development tutorial for the Telos blockchain network

Part 2| Part 3 | Part 4 | Part 5

This article serves as an introduction and is the first in a series of step by step tutorials on how to develop a decentralized application (or DApp) for the Telos blockchain network. Although in the future we will focus on quick snippets that explain how to implement particular functionalities, in this series we will focus on basic concepts. So you can build your first Telos Dapp from scratch. The final outcome will be a simple yet effective IoT-related DApp. We will call it SensorDApp.

The SensorDApp has a sheer, simple aspiration: let you store sensors’ data directly into the Telos Blockchain. We selected this scope because it proves two great advantages of Telos: high transaction capacity and no need of user payment whenever data is “stored” into the blockchain.

We conceived this DApp to be easy to use and to implement, so it requires as little hardware as possible — in fact you don’t even need the hardware if you just want to learn how to code the DApp. And if you go for the full experience you only need to add this affordable minimum:

  • A Raspberry Pi model 3 small single-board computer. (Est. price: $40)
  • An AM2303 humidity and temperature sensor. (Est. price: $10)

Well, now let’s go down the rabbit hole…

We have broken down the development of SensorDApp into 5 easy b̵u̵t̵ ̵s̵o̵c̵i̵a̵l̵ ̵t̵i̵m̵e̵ ̵c̵o̵n̵s̵u̵m̵i̵n̵g̵ steps:

  1. Develop and successfully deploy a smart contract on the Telos Tesnet, which will be able to store data of sensors associated with an account. The advantage of being a smart contract designed to store the sensors’ data is that the DApp will not make use of your RAM in Telos. You will only need to “pay” for allocating CPU and bandwidth resources.
  2. Connect the Raspberry Pi with a Telos API node, so that it can make transactions with the network in real time.
  3. Develop the front-end of the application, where you can get the values for a sensor and graphically visualize them.
  4. Deploy the DApp on IPFS, so that there is no need for more infrastructure dedicated to the front-end than the Raspberry Pi.
  5. Finally, we will guide you through the whole process of running the DApp, from creating the accounts, creating the sensors and inserting them into the front-end.
You can check the live version of this visualization at this webpage

Once you had completed all the chapters in this tutorial, you will be able to deploy your own sensor to store its data on the Telos blockchain.

So stay tuned to keep up with the following articles if you want to learn the wonders of coding DApps for Telos.

Don’t panic! There will be no coding lessons until next week…

If you are in the mood for the second part of the tutorial see below…

And if you want to connect directly with the community of creators and developers of DApps for Telos, please join the Telos Dapp Development telegram group.

This tutorial has been created by members of The Teloscope team.

The Teloscope is an independent nonprofit Telos block producer — our work is free from the influence of crypto whales or other BPs. The revenue we get from any service we provide to the Telos network is fully invested in our Telos BP infrastructure, as well as in tools and services for the blockchain community.

You can support us by including theteloscope among the list of BPs that deserve your vote.