I have storage lines that store two trains too - although the assumption is that they will each store one long train and one short train, as they're not long enough for two long ones.
?
I did it with three sensors -
1 - the front of the storage line, don't cross this one
2 - just after the length of my longest short train - short trains will not cover this sensor so long trains can pull up behind. Long trains will cover this sensor so short trains won't be able to pull up and cover it
3 - just after the length of my longest long train - meaning short trains can pull up behind
?
I used IR sensors for this as they're more straightforward and the intention is to determine static positioning, not motion.
?
Chris