arduino code + read updated