CLI Tool for Sensors

Easy Python IO
Solve this problem

Create a command-line interface tool that reads sensor values and prints formatted output. Supports options for temperature, humidity, and pressure.

Constraints

  • Use argparse.
  • Flags: --temp, --hum, --press.
  • Print simulated values.
  • Default prints all.
  • Printable format JSON-like.
Starter codePython
1import argparse2# TODO