arduino BMC code