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