Configure sensor and receive data