Skip to content
This repository was archived by the owner on Aug 13, 2025. It is now read-only.
This repository was archived by the owner on Aug 13, 2025. It is now read-only.

The UV Index (UVI) unit is incorrectly displayed as "lux" in the MakeCode interface. #1406

@DeXin64

Description

@DeXin64

🐞 Describe the bug

The UV Index (UVI) unit is incorrectly displayed as "lux" in the MakeCode interface. This is misleading because "lux" is a unit for visible light intensity, while the UV Index is a dimensionless index used to represent the strength of ultraviolet radiation from the sun.


🔁 To Reproduce

Steps to reproduce the behavior:

  1. Go to https://makecode.microbit.org/
  2. Create or open a project that uses a UV sensor or UV Index block
  3. Run the simulation or connect a real micro:bit device with a UV sensor
  4. Observe the sensor output display and notice that the UV Index value is shown with the unit "lux"

Expected behavior

The UV Index should be displayed without the unit "lux", or with a label such as "UV Index" or "UVI". Since it is a standardized index based on erythemal-weighted UV radiation, it does not have a physical unit like lux.


📸 Screenshots

If applicable, add screenshots to help explain your problem.
(Example: A screen showing “UV Index: 6 lux”)


💻 Desktop (please complete the following information):

  • OS: Windows 10 /
  • Browser: Edge
  • Version: e.g.125.0.0.0

📝 Additional context

  • The issue may occur in a third-party extension or built-in environment sensor module.
  • The UV Index is an internationally recognized measure of UV radiation intensity, typically ranging from 0 to 11+.
  • Lux is a unit used for measuring visible light brightness and is not suitable for representing UV radiation levels.
  • Reference sources:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions