Reed Switch BS2 Example Code