Can i take these 3 bunches of code below

Do some reading on printf()

You need to put all the text and any formatting characters in one pair of quotes and follow that with a list of the matching variables to be printed, like this

Serial.printf("Publishing on topic %s at QoS 1, packetId: %i ", MQTT_BME280, packetIdPub1);

and not mix them up like this

Serial.printf("Tempature: %.2f ", temp,"Humidity: %.2f ", hum,"Pressure: %.3f \n", pres);