Java code for controlling physical devices with SFDC and Arduino