Dissolved oxygen (DO) is a crucial parameter for assessing environmental conditions in aquatic ecosystems. However, commercial in situ dataloggers for oxygen optodes can be relatively expensive and limited in their specifications. In this paper, we present a novel design for a DO datalogger system based on the control boards family with RP2040 MCU chipset. Our design includes two types of dataloggers: a simple logging system and a programmable system for sampling rates via magnetic switches underwater for divers. We provide detailed descriptions of the system, including the MicroPython source code and drawings to aid in construction. We also discuss the various applications of our DO datalogger system in monitoring dissolved oxygen concentration in coastal waters and assessing the benthic metabolism of aquatic ecosystems. Our DO datalogger system provides an affordable and flexible option for researchers to accurately monitor DO concentrations in aquatic environments, and thereby improve our understanding of these complex ecosystems.