Added setDataDirection method to read data from DATA pins.