{
  "metadata": {
    "id": "rev-31-1425-touch-sensor",
    "name": "REV Touch Sensor",
    "description": "Binary digital touch sensor that acts as a push button or limit switch. Connects with a 4-pin JST PH cable to control system digital ports.",
    "manufacturer": "REV Robotics",
    "part_number": "REV-31-1425",
    "datasheet_url": "https://www.revrobotics.com/rev-31-1425/",
    "tags": [
      "touch",
      "sensor",
      "digital",
      "limit_switch"
    ],
    "schema_version": "1.4.0",
    "version": "1.2",
    "taxonomy": [
      "sensor.touch",
      "robotics.ftc"
    ]
  },
  "domains": [
    {
      "domain": "electrical",
      "resources": [
        {
          "id": "jst_ph_connection",
          "name": "JST PH Connector",
          "description": "Sensor interface via 4-pin JST PH cable.",
          "functions": [
            {
              "name": "JST PHC_CONNECTOR",
              "direction": "bidirectional",
              "signal_class": "data"
            }
          ],
          "connector_type": "jst_ph_4"
        }
      ],
      "interfaces": [
        {
          "id": "digital_sensor_interface",
          "name": "Digital Sensor Interface",
          "protocol": {
            "type": "digital",
            "role": "input"
          },
          "requires": [
            {
              "function": "JST PHC_CONNECTOR",
              "count": 1
            }
          ],
          "constraints": {
            "max_connections": 1,
            "requires_connector_type": "jst_ph_4"
          },
          "description": "Interface for a binary digital sensor (touch/limit)."
        }
      ]
    }
  ],
  "usage_notes": "Connect to a control hub or expansion hub digital port via a 4-pin JST PH sensor cable. Outputs logic high when not pressed; pulls low when pressed. Commonly used for limit switches or user input. Ensure correct wiring and 3.3 V logic compatibility.",
  "application_examples": [
    "Limit switch for robot mechanisms",
    "Binary user input (button)"
  ],
  "warnings": [
    "Passive logic device — does not source power.",
    "Ensure correct polarity when wiring into control system."
  ]
}