add logging for arduino thread