Two micro switches tell the WEMOS when to stop at the bottom and top of the window ... the parts and the code used to run everything. There are many other creative ways to open your blinds ...