now it reads data from sensors