Codes used in arduino class