moved sensor to clojure