Hi,
From bmp388 HSMI doc, you could find we suggest the hole in the top lid shall not be exposed to direct light. There are also some suggestion to avoid other factors influence.
BST-BMP380-HS000.pdf, https://www.bosch-sensortec.com/products/environmental-sensors/pressure-sensors/bmp388/#documents
... View more