public function getValue() { $valueFile = $this->getPinFile(self::GPIO_PIN_FILE_VALUE); return (int) $this->fileSystem->getContents($valueFile); }