Complete Guide MQTT OpenHAB ESP8266 Door / Window Sensor: Hardware

In this video I will show you the hardware and how to make the ESP8266 MQTT OpenHAB Door window Sensor.
Order the Kit or PCB to make this here:

Link To MQTT OpenHAB ESP8266 Door / Window Sensor (Written Guide):

Link to all the Parts and Tools:

Link To Home Automation Server Guide:

Home Automation Server Videos:
Demo –
Hardware –
Software (Using Mac) –
Software (Using Windows) –
Final Installation –

Check out the official website:


This channel will show you the path to creating your very own Ultimate Smart House using Arduino, raspberry pi, esp8266, OpenHAB 2 and more to do home automation. Each video will be a different project and tutorial that you can follow to make your house more technologically advanced. Also, there is more information as well as detailed guides on

23 Replies to “Complete Guide MQTT OpenHAB ESP8266 Door / Window Sensor: Hardware”

  1. Abram Manoge

    can someone help me on how to wire the esp8266 without a circuit board . especially how to set it up for bootloader mode and how to set it to run mode. even a picture of a diagram on paper would be very helpful

  2. Ishti Mahbub

    Hi, this is really amazing. I am blown away by the depth of knowledge is demonstrated throughout the series of videos. Kudos!
    I have a question – Is it not cheaper to buy a Door Sensor rather than building one? I can imagine the thrill of building one and the knowledge, and experience you gain but is it financially cheaper to make it own or buy it from the market? Especially for those who don't want to build everything from scratch (the sensors I mean)? The PCBs are relatively costlier and the most expensive part of the sensors ….It is fun to make one but when you need 15/20 of such sensors (considering doors and windows) – does this method make sense? If I get an off the shelf sensor, how would it work?

  3. paul hyland

    Hi Matt love all your videos and have learnt a lot from you with installing open hab. im very much still a noob though, how would you be able to link an audible alarm to this set up?? thanks

  4. Jesper Pedersen

    I am doing something similar just except I am not using a magnetic switch but am using a gyro (the mpu6050 for proof of concept). I made a small box that can be put on doors and windows so it cannot only tell if something is open/closed but also indicate how open/closed it is.

  5. DEEJ

    Very disappointed in the video as I thought you would use a breadboard and give the option of a pcb. I'm starting out and don't have access to getting a pcb isolated quickly.

  6. John Robinson

    Ok I'm gonna make a lot these so I have a question that might lower the amount I need. I am gonna use them at open window sensors so here is my question. Could you daisy chain the positive to the negative of 2 set of switches. Making one loop. This way I would have one sensor for two windows that are side by side??

  7. Nathan Parr

    Cool idea with the PCB. Makes the project much cleaner. For those who want to keep costs down, a CH340 and MC-38 from AliExpress will do all this out of the box. You're looking at $5 CAD all in. Just an FYI.

Leave a Reply

Your email address will not be published. Required fields are marked *