}
def setValue(String value) {
- this.carbonMonoxideLatestValue = carbonMonoxide
println("the carbon monoxide detector with id:$id is triggered to $value!")
+ this.carbonMonoxideLatestValue = value
this.carbonMonoxide = value
this.currentCarbonMonoxideValue = value
}