{"id":3874,"date":"2023-03-15T22:35:36","date_gmt":"2023-03-15T14:35:36","guid":{"rendered":"https:\/\/resource.webduino.io\/?p=3874"},"modified":"2023-03-15T22:35:36","modified_gmt":"2023-03-15T14:35:36","slug":"soil","status":"publish","type":"docs","link":"https:\/\/resource.webduino.io\/docs\/socket\/sensor\/soil","title":{"rendered":"\u571f\u58e4\u6fd5\u5ea6\u5075\u6e2c"},"content":{"rendered":"<p>\u9019\u7bc7\u6703\u7e7c\u7e8c\u7528\u300c\u5169\u500b\u88dd\u7f6e\u300d\u4f86\u9032\u884c\u9023\u52d5\uff0c\u4ee5\u4e0b\u5c07\u6703\u900f\u904e\u300c\u571f\u58e4\u6fd5\u5ea6\u5075\u6e2c\u8a08\u300d\u4f86\u5075\u6e2c\u571f\u58e4\u6fd5\u5ea6\uff0c\u7576\u6fd5\u5ea6\u5230\u9054\u4e00\u5b9a\u7a0b\u5ea6\u7684\u6642\u5019\u5c31\u4eae\u71c8\uff0c\u5176\u5be6\u56e0\u70ba\u539f\u7406\u662f\u63a7\u5236\u7e7c\u96fb\u5668\uff0c\u6240\u4ee5\u5176\u5be6\u6211\u5011\u53ef\u4ee5\u628a\u71c8\u6ce1\u63db\u6210\u6c34\u6cf5\uff0c\u5c31\u8b8a\u6210\u6fd5\u5ea6\u4e0d\u5920\u7684\u6642\u5019\u5c31\u81ea\u52d5\u6f86\u6c34\u3002<\/p>\n<blockquote>\n<p>\u5728\u524d\u5169\u7bc7\u300c\u958b\u95dc\u300d\u7684\u4ecb\u7d39\uff0c\u90fd\u662f\u4f7f\u7528\u300c\u5169\u500b\u88dd\u7f6e\u4ee5\u4e0a\u300d\u9032\u884c\u9023\u52d5\uff0c\u9019\u5176\u5be6\u662f\u76f8\u7576\u4fbf\u5229\u7684\uff0c\u56e0\u70ba<strong>\u5728\u50b3\u7d71\u7684 Arduino \u4e16\u754c\u88e1\uff0c\u8981\u505a\u5230\u540c\u6642\u591a\u500b\u88dd\u7f6e\u9023\u52d5\u5341\u5206\u56f0\u96e3\uff0c\u4f46\u5982\u679c\u6211\u5011\u628a\u9019\u4e9b\u88dd\u7f6e\u4ee5\u53ca\u4e0a\u982d\u7684\u96f6\u4ef6\uff0c\u900f\u904e Webduino \u7684\u5354\u52a9\uff0c\u8b8a\u6210\u90fd\u4ee5\u300c\u7db2\u9801\u8b8a\u6578\u300d\u7684\u578b\u614b\u4f86\u64cd\u4f5c\uff0c\u76f8\u5c0d\u5c31\u7c21\u55ae\u8a31\u591a<\/strong>\u3002<\/p>\n<\/blockquote>\n<h2>\u571f\u58e4\u6fd5\u5ea6\u5075\u6e2c\u8a08<\/h2>\n<p>\u571f\u58e4\u6fd5\u5ea6\u5075\u6e2c\u8a08\u7684\u5075\u6e2c\u539f\u7406\u662f\u900f\u904e\u300c\u5c0e\u96fb\u5ea6\u300d\uff0c\u4e5f\u5c31\u662f\u5169\u652f\u91d1\u5c6c\u63a2\u91dd\u4e4b\u9593\u7684\u5c0e\u96fb\u5ea6\uff0c\u56e0\u6b64\u4e00\u822c\u5982\u679c\u4e2d\u9593\u7684\u4ecb\u8cea\u53ea\u6709\u7a7a\u6c23\uff0c\u5c0e\u96fb\u5ea6\u61c9\u8a72\u5c31\u662f 0 ( \u6709\u6642\u5019\u7a7a\u6c23\u6fd5\u5ea6\u592a\u9ad8\uff0c\u53ef\u80fd\u5c31\u6703\u662f 0.X \u4e4b\u985e\u7684 )\u3002<\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" alt=\"\u571f\u58e4\u6fd5\u5ea6\u5075\u6e2c\u8a08\" src=\"https:\/\/i0.wp.com\/photo.webduino.io\/resource\/socket\/sensor\/soil-01.webp?w=1200&#038;ssl=1\" data-recalc-dims=\"1\" \/><\/p>\n<p>\u56e0\u70ba\u571f\u58e4\u6fd5\u5ea6\u5075\u6e2c\u8a08\u56de\u50b3\u7684\u662f\u985e\u6bd4\u8a0a\u865f\uff0c\u6240\u4ee5\u63a5\u7dda\u7684\u65b9\u6cd5\u8981\u628a S \u7684\u8173\u4f4d\u63a5\u5728\u985e\u6bd4\u8173 ( A \u958b\u982d )\uff0c+ \u63a5 VCC\uff0c- \u63a5 GND\u3002<\/p>\n<p><img decoding=\"async\" alt=\"\u99ac\u514b\u4e00\u865f\u8207\u571f\u58e4\u6fd5\u5ea6\u5075\u6e2c\u8a08\u63a5\u7dda\u5716\" src=\"https:\/\/i0.wp.com\/photo.webduino.io\/resource\/socket\/sensor\/soil-02.webp?w=1200&#038;ssl=1\" data-recalc-dims=\"1\" \/><\/p>\n<p>\u9019\u88cf\u5148\u6253\u958b Webduino Blockly \u7de8\u8f2f\u5de5\u5177\u6e2c\u8a66 ( <a href=\"https:\/\/blockly.webduino.io\">https:\/\/blockly.webduino.io<\/a> )\uff0c\u653e\u5165\u958b\u767c\u677f\uff0c\u8f38\u5165\u624b\u908a\u88dd\u7f6e\u7684 ID\uff0c\u653e\u5165\u571f\u58e4\u6fd5\u5ea6\u5075\u6e2c\u7684\u7a4d\u6728\uff0c\u8a2d\u5b9a\u958b\u59cb\u5075\u6e2c\u4e26\u986f\u793a\u5075\u6e2c\u6578\u503c\u3002<\/p>\n<p><img decoding=\"async\" alt=\"\u8a2d\u5b9a\u571f\u58e4\u6fd5\u5ea6\u5075\u6e2c\u8a08\u7a4d\u6728\" src=\"https:\/\/i0.wp.com\/photo.webduino.io\/resource\/socket\/sensor\/soil-03.webp?w=1200&#038;ssl=1\" data-recalc-dims=\"1\" \/><\/p>\n<p>\u57f7\u884c\u4e4b\u5f8c\uff0c\u5982\u679c\u7528\u624b\u53bb\u6309\u58d3 ( \u4e00\u6839\u624b\u6307\u540c\u6642\u89f8\u78b0\u5169\u96bb\u63a2\u91dd )  \uff0c\u5c31\u6703\u767c\u73fe\u6578\u503c\u5f80\u4e0a\u5347\u9ad8\u3002<\/p>\n<blockquote>\n<p>\u76f8\u95dc\u6559\u5b78\uff1a<a href=\"https:\/\/resource.webduino.io\/docs\/cloud-component\/sensor\/soil\">\u571f\u58e4\u6fd5\u5ea6\u5075\u6e2c<\/a><\/p>\n<hr \/>\n<p>\u7bc4\u4f8b\u89e3\u7b54 ( \u9ad4\u9a57\u7248 )\uff1a<a href=\"https:\/\/goo.gl\/RDxhsA\">https:\/\/goo.gl\/RDxhsA<\/a><\/p>\n<\/blockquote>\n<p><img decoding=\"async\" alt=\"\u986f\u793a\u571f\u58e4\u6fd5\u5ea6\u5075\u6e2c\u8a08\u5075\u6e2c\u6578\u503c\" src=\"https:\/\/i0.wp.com\/photo.webduino.io\/resource\/socket\/sensor\/soil-04.gif?w=1200&#038;ssl=1\" data-recalc-dims=\"1\" \/><\/p>\n<p>\u9019\u6642\u5019\u53ef\u4ee5\u62ff\u4e00\u500b\u6c34\u676f\uff0c\u628a\u571f\u58e4\u6fd5\u5ea6\u5075\u6e2c\u8a08\u63d2\u5230\u6c34\u88e1\uff0c\u5c31\u6703\u6e2c\u51fa\u76f8\u5c0d\u61c9\u7684\u6578\u503c\u3002( \u6578\u503c\u57fa\u672c\u4e0a\u4e0d\u53ef\u80fd\u5230 100\uff0c\u56e0\u70ba 100 \u8868\u793a\u5c0e\u96fb\u5ea6\u767e\u5206\u4e4b\u767e\uff0c\u9664\u975e\u62ff\u4e00\u689d\u96fb\u7dda\u628a\u5169\u96bb\u63a2\u91dd\u63a5\u8d77\u4f86 )<\/p>\n<h2>Webduino \u7a0b\u5f0f\u7528\u6cd5<\/h2>\n<p>\u571f\u58e4\u6fd5\u5ea6\u7684\u5ba3\u544a\u4f7f\u7528  <code>getSoil<\/code>\uff0c\u6ce8\u610f\u9019\u908a\u63a5\u7684 pin \u8173\u6578\u5b57\u662f\u300c\u985e\u6bd4\u8173\u300d\uff0c\u4e5f\u5c31\u662f\u5728\u958b\u767c\u677f\u4e0a\u9762\u6709\u300cA\u300d( Analog ) \u958b\u982d\u7684\u8173\u4f4d\uff0c\u4f8b\u5982\u63a5\u5728 A3 \u5f8c\u9762\u6578\u5b57\u5c31\u586b 3\u3002<\/p>\n<pre><code>soil = getSoil(board, 3);\n<\/code><\/pre>\n<p>\u958b\u59cb\u5075\u6e2c\u7684\u7528\u6cd5\u5982\u4e0b\uff0c\u4f7f\u7528 <code>.on<\/code> \u4ee5\u53ca <code>callback<\/code> \u5be6\u4f5c\uff0c<code>callback<\/code> \u5e36\u4e00\u500b\u53c3\u6578\uff0c\u9019\u500b\u53c3\u6578\u5c31\u662f\u571f\u58e4\u6fd5\u5ea6\u6240\u5075\u6e2c\u5230\u7684\u6578\u503c\u3002<\/p>\n<pre><code>soil.on(function(val){\n});\n<\/code><\/pre>\n<p>\u5982\u679c\u8981\u505c\u6b62\u5075\u6e2c\uff0c\u4f7f\u7528 <code>.off()<\/code> \u5373\u53ef\u3002<\/p>\n<pre><code>soil.off();\n<\/code><\/pre>\n<h2>\u7db2\u9801\u63a7\u5236<\/h2>\n<p>\u958b\u59cb\u63a7\u5236\u4e4b\u524d\u8981\u5148\u63a5\u7dda\uff0c\u4e00\u584a\u88dd\u7f6e\u958b\u767c\u677f\u63a5\u571f\u58e4\u6fd5\u5ea6\u5075\u6e2c\u8a08 ( \u8173\u4f4d A3 )\uff0c\u53e6\u4e00\u584a\u88dd\u7f6e\u63a5\u667a\u6167\u63d2\u5ea7 ( \u8173\u4f4d 10 )\uff0c\u5176\u5be6\u4e0d\u4e00\u5b9a\u8981\u9019\u6a23\u505a\uff0c\u7528\u540c\u4e00\u584a\u958b\u767c\u677f\u4e5f\u53ef\u4ee5\u5b8c\u6210\uff0c\u53ea\u662f\u7528\u5169\u584a\u66f4\u80fd\u51f8\u986f\u300cWi-Fi\u300d\u64cd\u63a7\u7684\u80fd\u529b\uff0c\u5c0d\u65bc\u571f\u58e4\u5075\u6e2c\u4f86\u8aaa\u4e5f\u6bd4\u8f03\u5408\u7406\uff0c\u7562\u7adf\u82b1\u76c6\u64fa\u5728\u967d\u53f0\u4e0a\uff0c\u71c8\u6ce1\u5728\u5ba4\u5167\u662f\u6bd4\u8f03\u6b63\u5e38\u7684\u72c0\u6cc1\u3002<\/p>\n<p><img decoding=\"async\" alt=\"\u667a\u6167\u63d2\u5ea7\u8207\u571f\u58e4\u6fd5\u5ea6\u5075\u6e2c\u8a08\u63a5\u7dda\u5716\" src=\"https:\/\/i0.wp.com\/photo.webduino.io\/resource\/socket\/sensor\/soil-05.webp?w=1200&#038;ssl=1\" data-recalc-dims=\"1\" \/><\/p>\n<p>HTML \u7684\u90e8\u5206\u5148\u5728\u81ea\u5df1\u7684\u7db2\u9801\u5167\u5f15\u5165\u300c webduino-min.js \u300d\u9084\u6709\u300c webduino-blockly.js \u300d\u9019\u5169\u500b JavaScript\uff0c\u9019\u6a23\u6211\u5011\u624d\u6709\u64cd\u63a7\u958b\u767c\u677f\u4ee5\u53ca\u571f\u58e4\u5075\u6e2c\u7684 API \u53ef\u4ee5\u4f7f\u7528\uff0c\u5728 <code>body<\/code> \u7684\u5340\u57df\u653e\u5165\u4e00\u500b <code>h2<\/code> \u4f86\u986f\u793a\u4e00\u4e9b\u6587\u5b57\u8a0a\u606f\uff0c\u7136\u5f8c\u653e\u5165\u5169\u5f35\u71c8\u6ce1\u4e00\u660e\u4e00\u6697\u7684\u5716\u7247\uff0c\u8b93\u5075\u6e2c\u5230\u8a0a\u865f\u7684\u6642\u5019\uff0c\u7db2\u9801\u4e0a\u7684\u71c8\u6ce1\u4e5f\u6703\u767c\u751f\u53cd\u61c9\u3002<\/p>\n<pre><code>&lt;html&gt;\n&lt;head&gt;\n  &lt;meta charset=\"utf-8\"&gt;\n  &lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no\"&gt;\n  &lt;title&gt;Webduino&lt;\/title&gt;\n  &lt;script src=\"https:\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/1.9.1\/jquery.min.js\"&gt;&lt;\/script&gt;\n  &lt;script src=\"https:\/\/webduino.io\/components\/webduino-js\/dist\/webduino-all.min.js\"&gt;&lt;\/script&gt;\n  &lt;script src=\"https:\/\/blockly.webduino.io\/webduino-blockly.js\"&gt;&lt;\/script&gt;\n&lt;\/head&gt;\n\n&lt;body&gt;\n  &lt;h2 id=\"show\"&gt;&lt;\/h2&gt;\n  &lt;img src=\"http:\/\/example.oxxostudio.tw\/it2016\/it2016-day05-on.webp\" id=\"on\"&gt;\n  &lt;img src=\"http:\/\/example.oxxostudio.tw\/it2016\/it2016-day05-off.webp\" class=\"show\" id=\"off\"&gt;\n&lt;\/body&gt;\n&lt;\/html&gt;\n<\/code><\/pre>\n<p>CSS \u7684\u90e8\u5206\u5c31\u53ea\u662f\u5beb\u500b\u7c21\u55ae\u7684\u63a7\u5236\u71c8\u6ce1\u5716\u7247\u6709\u6c92\u6709\u51fa\u73fe\u800c\u5df2\u3002<\/p>\n<pre><code>img{\n  display:none;\n}\n.show{\n  display:block;\n}\n<\/code><\/pre>\n<p>JavaScript \u7684\u8aaa\u660e\u5c31\u76f4\u63a5\u5beb\u5728\u7a0b\u5f0f\u78bc\u88e1\u982d\uff0c\u4e00\u958b\u59cb\u7684 a \u8b8a\u6578\u4f5c\u70ba\u78ba\u8a8d\u5169\u584a\u958b\u767c\u677f\u540c\u6642\u4e0a\u7dda\uff0c\u5176\u4ed6\u5c31\u662f\u5ba3\u544a\u571f\u58e4\u6fd5\u5ea6\u3001LED\u3001\u5716\u7247\u4e4b\u985e\u7684\u8b8a\u6578\u3002<\/p>\n<pre><code>$(function(){\n\n  var soil,\n      led,\n      $show=$('#show'),\n      $on = $('#on'),\n      $off = $('#off'),\n      a = 0;\n\n  \/\/\u8a2d\u5b9a\u7b2c\u4e00\u584a\u88dd\u7f6e\u63a5\u667a\u6167\u63d2\u5ea7\u71c8\u6ce1\n  boardReady('\u88dd\u7f6e 1 \u7684 ID', function (board) {\n    board.systemReset();\n    board.samplingInterval = 250;\n    led = getLed(board, 10); \/\/\u8a2d\u5b9a LED \u70ba 10 \u865f\u8173\n    a = a+1;\n    if(a===2){\n      allReady(); \/\/\u78ba\u8a8d\u5169\u584a\u677f\u5b50\u90fd\u4e0a\u7dda\u4e86\u5c31\u57f7\u884c\n    }\n  });\n\n  \/\/\u8a2d\u5b9a\u7b2c\u4e8c\u584a\u88dd\u7f6e\u63a5\u6309\u9215\u958b\u95dc\n  boardReady('\u88dd\u7f6e 2 \u7684 ID', function (board) {\n    board.systemReset();\n    board.samplingInterval = 250;\n    soil = getSoil(board, 3); \/\/\u8a2d\u5b9a \u571f\u58e4\u5075\u6e2c \u70ba A3 \u865f\u8173\n    a = a+1;\n    if(a===2){\n      allReady(); \/\/\u78ba\u8a8d\u5169\u584a\u677f\u5b50\u90fd\u4e0a\u7dda\u4e86\u5c31\u57f7\u884c\n    }\n  });\n\n  \/\/ \u78ba\u8a8d\u5169\u584a\u677f\u5b50\u90fd\u4e0a\u7dda\u4e86\u8981\u57f7\u884c\u7684\u52d5\u4f5c\n  function allReady(){\n    $show.text('\u5075\u6e2c\u4e2d...');\n    soil.on(function(val){\n      $show.text(val);\n      if(val&gt;10){\n        led.on();\n        $on.addClass('show');\n        $off.removeClass('show');\n      }else{\n        led.off();\n        $on.removeClass('show');\n        $off.addClass('show');\n      }\n    });\n  }\n\n});\n<\/code><\/pre>\n<p>\u6253\u958b\u7db2\u9801\u4e4b\u5f8c\uff0c\u628a\u5075\u6e2c\u5668\u653e\u5230\u6c34\u88e1\uff0c\u5c31\u6703\u770b\u5230\u71c8\u6ce1\u4eae\u8d77\uff0c\u96e2\u958b\u6c34\u7684\u6642\u5019\u71c8\u6ce1\u5c31\u6703\u7184\u6ec5\uff0c\u53cd\u4e4b\uff0c\u5982\u679c\u662f\u8981\u505a\u4e00\u500b\u81ea\u52d5\u6f86\u82b1\u5668\uff0c\u5c31\u628a\u908f\u8f2f\u76f8\u53cd\u5c31\u53ef\u4ee5\u4e86 ( \u4f8b\u5982\u5c0f\u65bc 30 \u5c31\u555f\u52d5\u6c34\u6cf5 )<\/p>\n<p><img decoding=\"async\" alt=\"\u7576\u571f\u58e4\u6fd5\u5ea6\u5075\u6e2c\u8a08\u5075\u6e2c\u5230\u6c34\u9ede\u4eae\u667a\u6167\u63d2\u5ea7\u71c8\u6ce1\" src=\"https:\/\/i0.wp.com\/photo.webduino.io\/resource\/socket\/sensor\/soil-06.gif?w=1200&#038;ssl=1\" data-recalc-dims=\"1\" \/><\/p>\n<h2>\u5c0f\u7d50<\/h2>\n<p>\u76ee\u524d\u571f\u58e4\u6fd5\u5ea6\u5075\u6e2c\u9047\u5230\u6700\u5927\u7684\u554f\u984c\uff0c\u6216\u8a31\u5c31\u662f\u300c\u93fd\u8755\u300d\u8207\u300c\u975e\u4eba\u70ba\u7834\u58de\u300d\uff0c\u7562\u7adf\u96d6\u7136\u611f\u6e2c\u5668\u90fd\u6709\u934d\u819c\u907f\u514d\u93fd\u8755\uff0c\u4f46\u5be6\u969b\u5728\u7530\u91ce\u683d\u7a2e\u7e3d\u662f\u6703\u9047\u5230\u81ea\u7136\u74b0\u5883\u7684\u4fb5\u8755\uff0c\u800c\u975e\u4eba\u70ba\u7834\u58de\u5c31\u66f4\u7121\u89e3\uff0c\u4f8b\u5982\u4f86\u500b\u98b1\u98a8\uff0c\u6216\u662f\u91ce\u72d7\u91ce\u8c93\u7684\u7834\u58de\u90fd\u662f\u5728\u6240\u96e3\u514d\uff0c\u4f46\u5982\u679c\u662f\u81ea\u5df1\u7684\u690d\u683d\uff0c\u6216\u662f\u6eab\u5ba4\u7684\u683d\u7a2e\uff0c\u5c31\u80fd\u628a\u9019\u4e9b\u8b8a\u6578\u964d\u4f4e\u5230\u6700\u5c0f\u3002<\/p>\n<blockquote>\n<p>\u53c3\u8003\u8cc7\u6599<\/p>\n<ul>\n<li>\u57fa\u790e\u6559\u5b78\uff1a<a href=\"https:\/\/resource.webduino.io\/docs\/cloud-component\/sensor\/soil\">\u571f\u58e4\u6fd5\u5ea6\u5075\u6e2c<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/webduinoio\/webduino-js\/blob\/master\/src\/module\/Soil.js\">https:\/\/github.com\/webduinoio\/webduino-js\/blob\/master\/src\/module\/Soil.js<\/a><\/li>\n<\/ul>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>\u9019\u7bc7\u6703\u7e7c\u7e8c\u7528\u300c\u5169\u500b\u88dd\u7f6e\u300d\u4f86\u9032\u884c\u9023\u52d5\uff0c\u4ee5\u4e0b\u5c07\u6703\u900f\u904e\u300c\u571f\u58e4\u6fd5\u5ea6\u5075\u6e2c\u8a08\u300d\u4f86\u5075\u6e2c\u571f\u58e4\u6fd5\u5ea6\uff0c\u7576\u6fd5\u5ea6\u5230\u9054\u4e00\u5b9a\u7a0b\u5ea6\u7684\u6642\u5019\u5c31\u4eae&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":3866,"menu_order":7,"comment_status":"open","ping_status":"open","template":"","meta":{"inline_featured_image":false,"_kadence_starter_templates_imported_post":false,"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"footnotes":""},"doc_tag":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u571f\u58e4\u6fd5\u5ea6\u5075\u6e2c | Webduino \u6559\u5b78\u8cc7\u6e90<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/resource.webduino.io\/docs\/socket\/sensor\/soil\" \/>\n<meta property=\"og:locale\" content=\"zh_TW\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u571f\u58e4\u6fd5\u5ea6\u5075\u6e2c | Webduino \u6559\u5b78\u8cc7\u6e90\" \/>\n<meta property=\"og:description\" content=\"\u9019\u7bc7\u6703\u7e7c\u7e8c\u7528\u300c\u5169\u500b\u88dd\u7f6e\u300d\u4f86\u9032\u884c\u9023\u52d5\uff0c\u4ee5\u4e0b\u5c07\u6703\u900f\u904e\u300c\u571f\u58e4\u6fd5\u5ea6\u5075\u6e2c\u8a08\u300d\u4f86\u5075\u6e2c\u571f\u58e4\u6fd5\u5ea6\uff0c\u7576\u6fd5\u5ea6\u5230\u9054\u4e00\u5b9a\u7a0b\u5ea6\u7684\u6642\u5019\u5c31\u4eae...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/resource.webduino.io\/docs\/socket\/sensor\/soil\" \/>\n<meta property=\"og:site_name\" content=\"Webduino \u6559\u5b78\u8cc7\u6e90\" \/>\n<meta property=\"og:image\" content=\"https:\/\/photo.webduino.io\/resource\/socket\/sensor\/soil-01.webp\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u9810\u4f30\u95b1\u8b80\u6642\u9593\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 \u5206\u9418\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/resource.webduino.io\/docs\/socket\/sensor\/soil\",\"url\":\"https:\/\/resource.webduino.io\/docs\/socket\/sensor\/soil\",\"name\":\"\u571f\u58e4\u6fd5\u5ea6\u5075\u6e2c | Webduino \u6559\u5b78\u8cc7\u6e90\",\"isPartOf\":{\"@id\":\"https:\/\/resource.webduino.io\/#website\"},\"datePublished\":\"2023-03-15T14:35:36+00:00\",\"dateModified\":\"2023-03-15T14:35:36+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/resource.webduino.io\/docs\/socket\/sensor\/soil#breadcrumb\"},\"inLanguage\":\"zh-TW\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/resource.webduino.io\/docs\/socket\/sensor\/soil\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/resource.webduino.io\/docs\/socket\/sensor\/soil#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9801\",\"item\":\"https:\/\/resource.webduino.io\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u667a\u6167\u63d2\u5ea7\",\"item\":\"https:\/\/resource.webduino.io\/docs\/socket\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"\u611f\u6e2c\u5668\u61c9\u7528\",\"item\":\"https:\/\/resource.webduino.io\/docs\/socket\/sensor\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"\u571f\u58e4\u6fd5\u5ea6\u5075\u6e2c\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/resource.webduino.io\/#website\",\"url\":\"https:\/\/resource.webduino.io\/\",\"name\":\"Webduino \u5b78\u7fd2\u8cc7\u6e90\u5eab\",\"description\":\"\u672c\u7db2\u7ad9\u63d0\u4f9b\u5b8c\u6574\u7684 Webduino STEAM \u6559\u80b2\u5b78\u7fd2\u8cc7\u6e90\uff0c\u5305\u542b\u958b\u767c\u677f\u3001\u7a0b\u5f0f\u7a4d\u6728\u3001\u96fb\u5b50\u96f6\u4ef6\u8207\u50b3\u611f\u5668\u7b49\u57fa\u790e\u64cd\u4f5c\uff0c\u8b93\u8001\u5e2b\u3001\u540c\u5b78\u3001maker \u80fd\u5920\u5feb\u901f\u4e0a\u624b Webduino\uff0c\u4e26\u4e0d\u5b9a\u671f\u66f4\u65b0\u8cc7\u8a0a\u6559\u80b2\u8da8\u52e2\u76f8\u95dc\u6587\u7ae0\u3002\",\"publisher\":{\"@id\":\"https:\/\/resource.webduino.io\/#organization\"},\"alternateName\":\"Webduino \u5b78\u7fd2\u8cc7\u6e90\u5eab\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/resource.webduino.io\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-TW\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/resource.webduino.io\/#organization\",\"name\":\"Webduino\",\"url\":\"https:\/\/resource.webduino.io\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-TW\",\"@id\":\"https:\/\/resource.webduino.io\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/resource.webduino.io\/wp-content\/uploads\/2022\/07\/logo\u900f\u660e\u5e95.png\",\"contentUrl\":\"https:\/\/resource.webduino.io\/wp-content\/uploads\/2022\/07\/logo\u900f\u660e\u5e95.png\",\"width\":1061,\"height\":1060,\"caption\":\"Webduino\"},\"image\":{\"@id\":\"https:\/\/resource.webduino.io\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u571f\u58e4\u6fd5\u5ea6\u5075\u6e2c | Webduino \u6559\u5b78\u8cc7\u6e90","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/resource.webduino.io\/docs\/socket\/sensor\/soil","og_locale":"zh_TW","og_type":"article","og_title":"\u571f\u58e4\u6fd5\u5ea6\u5075\u6e2c | Webduino \u6559\u5b78\u8cc7\u6e90","og_description":"\u9019\u7bc7\u6703\u7e7c\u7e8c\u7528\u300c\u5169\u500b\u88dd\u7f6e\u300d\u4f86\u9032\u884c\u9023\u52d5\uff0c\u4ee5\u4e0b\u5c07\u6703\u900f\u904e\u300c\u571f\u58e4\u6fd5\u5ea6\u5075\u6e2c\u8a08\u300d\u4f86\u5075\u6e2c\u571f\u58e4\u6fd5\u5ea6\uff0c\u7576\u6fd5\u5ea6\u5230\u9054\u4e00\u5b9a\u7a0b\u5ea6\u7684\u6642\u5019\u5c31\u4eae...","og_url":"https:\/\/resource.webduino.io\/docs\/socket\/sensor\/soil","og_site_name":"Webduino \u6559\u5b78\u8cc7\u6e90","og_image":[{"url":"https:\/\/photo.webduino.io\/resource\/socket\/sensor\/soil-01.webp"}],"twitter_card":"summary_large_image","twitter_misc":{"\u9810\u4f30\u95b1\u8b80\u6642\u9593":"1 \u5206\u9418"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/resource.webduino.io\/docs\/socket\/sensor\/soil","url":"https:\/\/resource.webduino.io\/docs\/socket\/sensor\/soil","name":"\u571f\u58e4\u6fd5\u5ea6\u5075\u6e2c | Webduino \u6559\u5b78\u8cc7\u6e90","isPartOf":{"@id":"https:\/\/resource.webduino.io\/#website"},"datePublished":"2023-03-15T14:35:36+00:00","dateModified":"2023-03-15T14:35:36+00:00","breadcrumb":{"@id":"https:\/\/resource.webduino.io\/docs\/socket\/sensor\/soil#breadcrumb"},"inLanguage":"zh-TW","potentialAction":[{"@type":"ReadAction","target":["https:\/\/resource.webduino.io\/docs\/socket\/sensor\/soil"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/resource.webduino.io\/docs\/socket\/sensor\/soil#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9801","item":"https:\/\/resource.webduino.io\/"},{"@type":"ListItem","position":2,"name":"\u667a\u6167\u63d2\u5ea7","item":"https:\/\/resource.webduino.io\/docs\/socket"},{"@type":"ListItem","position":3,"name":"\u611f\u6e2c\u5668\u61c9\u7528","item":"https:\/\/resource.webduino.io\/docs\/socket\/sensor"},{"@type":"ListItem","position":4,"name":"\u571f\u58e4\u6fd5\u5ea6\u5075\u6e2c"}]},{"@type":"WebSite","@id":"https:\/\/resource.webduino.io\/#website","url":"https:\/\/resource.webduino.io\/","name":"Webduino \u5b78\u7fd2\u8cc7\u6e90\u5eab","description":"\u672c\u7db2\u7ad9\u63d0\u4f9b\u5b8c\u6574\u7684 Webduino STEAM \u6559\u80b2\u5b78\u7fd2\u8cc7\u6e90\uff0c\u5305\u542b\u958b\u767c\u677f\u3001\u7a0b\u5f0f\u7a4d\u6728\u3001\u96fb\u5b50\u96f6\u4ef6\u8207\u50b3\u611f\u5668\u7b49\u57fa\u790e\u64cd\u4f5c\uff0c\u8b93\u8001\u5e2b\u3001\u540c\u5b78\u3001maker \u80fd\u5920\u5feb\u901f\u4e0a\u624b Webduino\uff0c\u4e26\u4e0d\u5b9a\u671f\u66f4\u65b0\u8cc7\u8a0a\u6559\u80b2\u8da8\u52e2\u76f8\u95dc\u6587\u7ae0\u3002","publisher":{"@id":"https:\/\/resource.webduino.io\/#organization"},"alternateName":"Webduino \u5b78\u7fd2\u8cc7\u6e90\u5eab","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/resource.webduino.io\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-TW"},{"@type":"Organization","@id":"https:\/\/resource.webduino.io\/#organization","name":"Webduino","url":"https:\/\/resource.webduino.io\/","logo":{"@type":"ImageObject","inLanguage":"zh-TW","@id":"https:\/\/resource.webduino.io\/#\/schema\/logo\/image\/","url":"https:\/\/resource.webduino.io\/wp-content\/uploads\/2022\/07\/logo\u900f\u660e\u5e95.png","contentUrl":"https:\/\/resource.webduino.io\/wp-content\/uploads\/2022\/07\/logo\u900f\u660e\u5e95.png","width":1061,"height":1060,"caption":"Webduino"},"image":{"@id":"https:\/\/resource.webduino.io\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/resource.webduino.io\/wp-json\/wp\/v2\/docs\/3874"}],"collection":[{"href":"https:\/\/resource.webduino.io\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/resource.webduino.io\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/resource.webduino.io\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/resource.webduino.io\/wp-json\/wp\/v2\/comments?post=3874"}],"version-history":[{"count":1,"href":"https:\/\/resource.webduino.io\/wp-json\/wp\/v2\/docs\/3874\/revisions"}],"predecessor-version":[{"id":3875,"href":"https:\/\/resource.webduino.io\/wp-json\/wp\/v2\/docs\/3874\/revisions\/3875"}],"up":[{"embeddable":true,"href":"https:\/\/resource.webduino.io\/wp-json\/wp\/v2\/docs\/3866"}],"wp:attachment":[{"href":"https:\/\/resource.webduino.io\/wp-json\/wp\/v2\/media?parent=3874"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/resource.webduino.io\/wp-json\/wp\/v2\/doc_tag?post=3874"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}