How to print SDS011 data to SSD1306 OLED by SPI

Add display.display(); after you print the data to the display in loop, immediately before the delay(500); . The display buffer does not get sent to the actual display until you call that function.