1 //Create a class for Touch sensor
3 import SmartThing.SmartThing
5 public class NfcTouch extends SmartThing {
6 // id, label, and display name of the device
11 NfcTouch(Closure sendEvent) {
13 labelSmartThing = label
14 displayNameSmartThing = displayName
15 sendEventSmartThings = sendEvent
20 displayName = "nfcSensor"