Arduino Library and example code