You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
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. 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.
Create or open a project that uses a UV sensor or UV Index block
Run the simulation or connect a real micro:bit device with a UV sensor
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.
🐞 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:
"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):
📝 Additional context