Infrared beam sensors connected to SmartThings hub?

Check this post out: