You can use the BBC micro:bit V2, which has a built-in speaker, as a data logger to record information from its integrated sensors. The data is securely stored on your micro:bit even when it is not powered.
To get started with data logging, check out our Data Logging User Guide.
The following video explains how data logging works on a micro:bit:
Use the data logging projects available on the Make it - Code it project pages on our website to explore data logging using MakeCode and the micro:bit Classroom tool.
Data logging with Python
You can use data logging when coding your micro:bit V2 in the micro:bit Python editor.
To find out more about data logging in Python, see the Data logging Reference content in our micro:bit Python Editor.