import RPi.GPIO as GPIO


class Water:

    def _init_(self, gpio_pin=18,pull_up_down=UP):
        PIO.setmode(GPIO.BCM)
        self.pull_up_down="GPIO.PUD_%s"(str(pull_up_down))
        GPIO.setup(gpio_pin, GPIO.IN, pull_up_down)
        self.wet

    def read_sensors(self):
        self.wet = GPIO.input(gpio_pin)
        print('wet=%s'(self.wet))

    def get_json(self):
        self.read_sensors()
        return {"wet": self.wet}

64dbfd189e6bf6ec57a6d9e1561d42bce32e744d
<mask token>


class Water:

    def _init_(self, gpio_pin=18, pull_up_down=UP):
        PIO.setmode(GPIO.BCM)
        self.pull_up_down = 'GPIO.PUD_%s'(str(pull_up_down))
        GPIO.setup(gpio_pin, GPIO.IN, pull_up_down)
        self.wet
    <mask token>
    <mask token>

<mask token>


class Water:

    def _init_(self, gpio_pin=18, pull_up_down=UP):
        PIO.setmode(GPIO.BCM)
        self.pull_up_down = 'GPIO.PUD_%s'(str(pull_up_down))
        GPIO.setup(gpio_pin, GPIO.IN, pull_up_down)
        self.wet
    <mask token>

    def get_json(self):
        self.read_sensors()
        return {'wet': self.wet}

<mask token>


class Water:

    def _init_(self, gpio_pin=18, pull_up_down=UP):
        PIO.setmode(GPIO.BCM)
        self.pull_up_down = 'GPIO.PUD_%s'(str(pull_up_down))
        GPIO.setup(gpio_pin, GPIO.IN, pull_up_down)
        self.wet

    def read_sensors(self):
        self.wet = GPIO.input(gpio_pin)
        print('wet=%s'(self.wet))

    def get_json(self):
        self.read_sensors()
        return {'wet': self.wet}

import RPi.GPIO as GPIO


class Water:

    def _init_(self, gpio_pin=18, pull_up_down=UP):
        PIO.setmode(GPIO.BCM)
        self.pull_up_down = 'GPIO.PUD_%s'(str(pull_up_down))
        GPIO.setup(gpio_pin, GPIO.IN, pull_up_down)
        self.wet

    def read_sensors(self):
        self.wet = GPIO.input(gpio_pin)
        print('wet=%s'(self.wet))

    def get_json(self):
        self.read_sensors()
        return {'wet': self.wet}

import RPi.GPIO as GPIO


class Water:

    def _init_(self, gpio_pin=18,pull_up_down=UP):
        PIO.setmode(GPIO.BCM)
        self.pull_up_down="GPIO.PUD_%s"(str(pull_up_down))
        GPIO.setup(gpio_pin, GPIO.IN, pull_up_down)
        self.wet

    def read_sensors(self):
        self.wet = GPIO.input(gpio_pin)
        print('wet=%s'(self.wet))

    def get_json(self):
        self.read_sensors()
        return {"wet": self.wet}
