Bird
0
0

How can you combine sensor data from temperature and humidity sensors on Raspberry Pi to show a comfort index on the dashboard?

hard📝 Scenario Q9 of 15
Raspberry Pi - Web Server and API
How can you combine sensor data from temperature and humidity sensors on Raspberry Pi to show a comfort index on the dashboard?
ADisplay temperature only and ignore humidity
BCreate a function that takes both readings and calculates the index
CShow raw sensor values without any calculation
DUse humidity reading as the comfort index directly
Step-by-Step Solution
Solution:
  1. Step 1: Understand combining multiple sensor inputs

    Comfort index requires combining temperature and humidity logically.
  2. Step 2: Identify best method to combine data

    A function that calculates index from both readings is correct; ignoring or using one alone is incomplete.
  3. Final Answer:

    Create a function that takes both readings and calculates the index -> Option B
  4. Quick Check:

    Combine sensors via function [OK]
Quick Trick: Use functions to combine multiple sensor inputs logically [OK]
Common Mistakes:
MISTAKES
  • Ignoring one sensor's data
  • Using raw values without calculation
  • Assuming one sensor alone defines comfort

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Raspberry Pi Quizzes