Cleanup HMI arduino code