Skip to content

Commit cdcd51f

Browse files
committed
syntax test
1 parent 5c3980b commit cdcd51f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,21 +70,21 @@ The begin method returns true if the sensor is connected and available, and fals
7070
#### Read Value
7171
To read the value from the sensor, the ```readMoistureValue()``` method is called on the sensor object.
7272

73-
```c++
73+
```cpp
7474
uint16_t soilMoisture = mySoilSensor.readMoistureValue();
7575
```
7676

7777
The value returned is from 0 (100% wet) to 1023 (0% web - "dry"). The value is a measurement of resistance between the sensors two probes. The value range is based on the capabilities of the Analog to Digital converter (ADC) on the sensors microcontroller - it's 10 bits with a max value of 2^10 = 1024.
7878

7979
To read the percent moist value, call the ```readMoisturePercentage()``` method:
8080

81-
```c++
81+
```cpp
8282
float percent = mySoilSensor.readMoisturePercentage();
8383
```
8484

8585
To read the moisture ration value (0 - 1.0), call the ```readMoistureRation()``` method:
8686

87-
```c++
87+
```cpp
8888
float wetRatio = mySoilSensor.readMoistureRatio();
8989
```
9090

0 commit comments

Comments
 (0)