Looking at your photograph, the pink dots appear in a repeated, fairly regular pattern across the wall, curtain, and bedspread. My assessment is that these are most likely light spots projected onto the scene by an external light source, rather than defective pixels in your iPhone 15 Pro Max camera sensor.
The pink dots could be caused by a laser-based light projector, but they are unlikely to be the iPhone 15 Pro Max's LiDAR sensor itself.
Why I think these are projected light spots
- They appear on different surfaces: The dots are visible on the wall, curtain, and bedspread. This suggests that light is falling on those surfaces.
- They form a repeating pattern: The dots are distributed in rows, which is consistent with a patterned light source, such as a decorative projector or a laser-based lighting device.
- Their colour is similar: Most dots appear pink or magenta, suggesting that the light source itself may be producing that colour.
- They follow the scene's surfaces: The dots appear to illuminate the objects in the photograph rather than behaving like isolated sensor defects.
How to confirm this
Try these three checks:
1. Look at the room with your own eyes.
Can you see the pink dots on the wall without using your iPhone camera? If yes, they are almost certainly coming from a light source in the room.
2. Take another photograph from a different angle.
Move the iPhone sideways and photograph the same wall. If the dots remain on the wall but their positions change relative to the camera, that would support the projected-light explanation.
3. Turn off the suspected light source.
Switch off any decorative lights, night lamps, or projectors in the room and take another photograph. If the dots disappear, you have identified the cause.