//Create a class for Touch sensor package NfcTouch import SmartThing.SmartThing public class NfcTouch extends SmartThing { // id, label, and display name of the device String id String label String displayName NfcTouch(Closure sendEvent) { idSmartThing = id labelSmartThing = label displayNameSmartThing = displayName sendEventSmartThings = sendEvent // Initialization id = "nfcSensorID0" label = "nfcSensor" displayName = "nfcSensor" } }