Simulation Of Space Environment Effects On Particle Sensors