In this Project we are going to explain you about how you can work on MQTT using Raspberry pi. Here first of all we are going to publish HC-SR04 data to MQTT Broker and also we will tell about how to subscribe some of the topics using MQTT. For the demo purpose we've subscribed two topics named Bulb1 and Bulb2 as we are taking two leds for that. So we can control these leds from our MQTT server.
1.Raspberry pi 3
2.HC-SR04
3.Resistors(2k,1k)
4.Two leds
5.Bread Board
6.Jumper wires
1.Raspbian Os
2.Putty
Visit for our youtube video https://www.youtube.com/watch?v=jeU-2qWkyuI