added methods setPin and readDataNow