as I didn't find something to copy and paste for myself I wote a sketch to use my ultrasonic sensors with pin change interrups. I share it just in case someone else searches the forum for a copy and paste ready sketch.The sketch uses one pin only per sensor. The Ping2cm function allows to include a temperature sensor.

I used some contributed libraries and the PING2cm function is from robtillaart.This made the whole thing easy to code.

Usage: - Connect the echo pin of your sensor to analog 14 or 15 (both if you have two sensors).- (doesn't work with all sensors) Connect the trigger and echo pin of your sensor to eachother (easiest is to solder them together on the front of the sensor).