viewof hasThing = Inputs.toggle({
label: "1. Physical Thing (Can you touch it?)",
value: true
})
viewof hasComputation = Inputs.toggle({
label: "2. Computation (Has a processor/microcontroller?)",
value: true
})
viewof hasConnectivity = Inputs.toggle({
label: "3. Internet Connectivity (Connects to internet directly or via gateway?)",
value: false
})
classification = !hasThing ? "Software/Cloud Service" :
!hasComputation ? "Passive Object" :
!hasConnectivity ? "Embedded Device" :
"IoT Device"
allThree = hasThing && hasComputation && hasConnectivity
html`
<div style="background: ${allThree ? 'linear-gradient(135deg, #16A085 0%, #2C3E50 100%)' : 'linear-gradient(135deg, #7F8C8D 0%, #2C3E50 100%)'}; padding: 24px; border-radius: 8px; color: white; margin: 20px 0; overflow: hidden;">
<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(105px, 1fr)); gap: 12px; margin-bottom: 20px;">
<div style="background: rgba(255,255,255,${hasThing ? '0.2' : '0.05'}); padding: 16px; border-radius: 6px; text-align: center; border: 2px solid ${hasThing ? '#16A085' : 'rgba(255,255,255,0.2)'};">
<div style="font-size: 36px; margin-bottom: 8px;">${hasThing ? '✓' : '✗'}</div>
<div style="font-size: 11px; font-weight: 700; letter-spacing: 0.04em;">THING</div>
</div>
<div style="background: rgba(255,255,255,${hasComputation ? '0.2' : '0.05'}); padding: 16px; border-radius: 6px; text-align: center; border: 2px solid ${hasComputation ? '#E67E22' : 'rgba(255,255,255,0.2)'};">
<div style="font-size: 36px; margin-bottom: 8px;">${hasComputation ? '✓' : '✗'}</div>
<div style="font-size: 11px; font-weight: 700; letter-spacing: 0.04em;">COMPUTE</div>
</div>
<div style="background: rgba(255,255,255,${hasConnectivity ? '0.2' : '0.05'}); padding: 16px; border-radius: 6px; text-align: center; border: 2px solid ${hasConnectivity ? '#3498DB' : 'rgba(255,255,255,0.2)'};">
<div style="font-size: 36px; margin-bottom: 8px;">${hasConnectivity ? '✓' : '✗'}</div>
<div style="font-size: 11px; font-weight: 700; letter-spacing: 0.04em;">INTERNET</div>
</div>
</div>
<div style="background: rgba(255,255,255,0.1); padding: 20px; border-radius: 6px; border-left: 4px solid ${allThree ? '#16A085' : '#E74C3C'};">
<div style="font-size: 14px; opacity: 0.9; margin-bottom: 8px;">Classification Result:</div>
<div style="font-size: 32px; font-weight: bold; margin-bottom: 12px;">${classification}</div>
<div style="font-size: 13px; line-height: 1.6;">
${!hasThing ? 'Without a physical thing, this is pure software or a cloud service - not IoT.' :
!hasComputation ? 'This is a passive object with no processing capability. Add a microcontroller to make it embedded.' :
!hasConnectivity ? '<strong>Almost there!</strong> This is an embedded device. Add Wi-Fi, Bluetooth, cellular, or a gateway connection to make it IoT.' :
'<strong>Congratulations!</strong> All three ingredients are present. This qualifies as a true IoT device.'}
</div>
</div>
</div>
`Three Ingredients Test
Three Ingredients Test
animation
iot
applications
Try Change internet connectivity, then press Check ingredients.
Observe Watch Classification Result: after you press Check ingredients.
Explain Explain why all three ingredients are required when you press Check ingredients.
Technical boundaries. Classification uses only physical thing, computation and internet connectivity. Internet connectivity can be direct or via a gateway.
Three Ingredients Test
Use this tool to determine whether a device qualifies as IoT by checking all three required ingredients.
Common Examples:
| Device | Thing | Computation | Connectivity | Result |
|---|---|---|---|---|
| Basic Microwave | ✓ | ✓ | ✗ | Embedded Device |
| Smart Thermostat | ✓ | ✓ | ✓ | IoT Device |
| Fitness Tracker | ✓ | ✓ | ✓ (via phone) | IoT Device |
| Traditional Thermometer | ✓ | ✗ | ✗ | Passive Object |
| Cloud Dashboard | ✗ | ✓ | ✓ | Software Service |