Arduino code and libraries