add reed sensor to index.js