By senior scientist, I assume you mean someone holding a research post in a government institution like NASA, NIST, NIH, CDC etc and is above the level of staff scientist. These people generally hold doctorates in their field as well as having a research experience (perhaps having attained tenure in academia or performing research at a similar level on soft money or as staff scientists). Having this person in their late thirties to early forties is probably reasonable, though they could certainly be older if they didn't go straight through school with no pauses or had to burn through several postdocs before getting a tenure track or permanent research job. Here's a link to the NIH site with their criteria for what a senior scientist is.
https://oir.nih.gov/sourcebook/personnel/ipds-appointment-mechanisms/senior-scientist
The criteria at private biotech company can be a bit different, however, and a senior scientist can be someone who is three years past their postdoc, so they could be as young as their early to mid thirties. There may be a rank above called a principal scientist.
http://scforum.sciencecareers.org/viewtopic.php?f=1&t=10560
To give you an idea of the time frame for academic training.
Assuming a similar educational process and path as we have today (in the US). Of course, there are some who are more accelerated because they were younger when they started college or they sailed through grad school or something or get a position without a postdoc first (rare for research-based biologists). Some are older, because they took time off between undergrad and grad school or did more postdocs.
--Undergrad science degree Age 18-22ish (if person takes four years to graduate. Some take more, of course.
--PhD usually takes 4-6 years (most took 6 when I was in grad school), so this person would be finished by 28ish.
--Some people get a master's degree before getting a doctorate, which can add a couple of years to the total as well.
--Postdoctoral fellowship. This can really vary with specialty and the current job market (some go through several before scoring a tenure track or permanent type of research job), but say at least 2 years minimum, so 30ish.
--Getting tenure at a university (promotion from assistant professor to associate professor) usually takes 5-6 years at a large research university, so they could have associate professor status by around 36.
One thing to consider is if your futuristic world has a different academic system (or a system of training scientists that is non academic or more individualized) then you can certainly have the person be at least somewhat younger.