Introduction: Telegram + Nodemcu + HC-SR501

In this article I will present IoT project that allows to sense presence of people in the room. System have remote communication via Telegram.

Step 1: Components

Nodemcu

HC-SR501

Motherboard

Wires

Software:

Arduino IDE + libraries: TelegramBot, esp8266( v2.6.3)

Step 2: Step 1: Connection

Connect components all together as shown on picture.

Step 3: Step 2: Create Telegram Bot

Create telegram bot and get bot-token.

Instruction how to create bot:

https://docs.microsoft.com/en-us/azure/bot-service/bot-service-channel-connect-telegram?view=azure-bot-service-4.0

Step 4: Step 3: Programming

You can use my code for realization.

If you want to use it, you need to create commands "/on" and "/off/ for your bot.

You can update commands to make it more usable for you. You also can add some extra sensors and do extra features

Step 5: Video (in Ukrainian)