Sample code to detect a USB device being inserted/removed