Accessing PMS5003 from concurrent scripts problem

It’s not all that hard if both are the same programing language like Python. I have a couple of lengthy files for that very reason. One sensor used for two different things.